diff --git a/packages/effect/test/Cause.test.ts b/packages/effect/test/Cause.test.ts index e1efbb31f30..65915239d45 100644 --- a/packages/effect/test/Cause.test.ts +++ b/packages/effect/test/Cause.test.ts @@ -48,7 +48,7 @@ describe("Cause", () => { describe("pretty", () => { it("Empty", () => { - expect(Cause.pretty(Cause.empty)).toEqual("All fibers interrupted without errors.") + expect(Cause.pretty(Cause.empty)).toEqual("") }) it("Fail", () => { @@ -84,12 +84,12 @@ describe("Cause", () => { }) it("Interrupt", () => { - expect(Cause.pretty(Cause.interrupt(FiberId.none))).toEqual("All fibers interrupted without errors.") + expect(Cause.pretty(Cause.interrupt(FiberId.none))).toEqual("InterruptedException: Fiber Interrupted") expect(Cause.pretty(Cause.interrupt(FiberId.runtime(1, 0)))).toEqual( - "All fibers interrupted without errors." + "InterruptedException: Fiber Interrupted by: #1" ) expect(Cause.pretty(Cause.interrupt(FiberId.composite(FiberId.none, FiberId.runtime(1, 0))))).toEqual( - "All fibers interrupted without errors." + "InterruptedException: Fiber Interrupted by: #1" ) }) }) @@ -214,10 +214,10 @@ describe("Cause", () => { }) it("Interrupt", () => { - expect(String(Cause.interrupt(FiberId.none))).toEqual(`All fibers interrupted without errors.`) - expect(String(Cause.interrupt(FiberId.runtime(1, 0)))).toEqual(`All fibers interrupted without errors.`) + expect(String(Cause.interrupt(FiberId.none))).toEqual(`InterruptedException: Fiber Interrupted`) + expect(String(Cause.interrupt(FiberId.runtime(1, 0)))).toEqual(`InterruptedException: Fiber Interrupted by: #1`) expect(String(Cause.interrupt(FiberId.composite(FiberId.none, FiberId.runtime(1, 0))))).toEqual( - `All fibers interrupted without errors.` + `InterruptedException: Fiber Interrupted by: #1` ) })