message: Add failing test for As.promise
diff: @@ -41,4 +41,28 @@ describe("Async", () => {
  )
  ).toEqual(As.successExit([1, 2, 3]))
  })
  +
  + it("onError", async () => {
  +
  + const throwP = async () => {
  + throw new Error("err");
  + }
  + const rejectP = async () => Promise.reject("reject");
  +
  + expect(
  + await pipe(
  + () => throwP(),
  + As.promise(_ => "mapped u"),
  + As.runPromiseExit
  + )
  + ).toEqual(As.failExit("mapped u"))
  +
  + expect(
  + await pipe(
  + () => rejectP(),
  + As.promise(_ => "mapped u"),
  + As.runPromiseExit
  + )
  + ).toEqual(As.failExit("mapped u"))
  + })
  })
  