MCPcopy
hub / github.com/Effect-TS/effect / expectJSON

Function expectJSON

packages/effect/test/Cause.test.ts:110–113  ·  view source on GitHub ↗
(cause: Cause.Cause<unknown>, expected: unknown)

Source from the content-addressed store, hash-verified

108 describe("Cause prototype", () => {
109 describe("toJSON / [NodeInspectSymbol]", () => {
110 const expectJSON = (cause: Cause.Cause<unknown>, expected: unknown) => {
111 deepStrictEqual(cause.toJSON(), expected)
112 deepStrictEqual(cause[Inspectable.NodeInspectSymbol](), expected)
113 }
114
115 it("Empty", () => {
116 expectJSON(Cause.empty, {

Callers 1

Cause.test.tsFile · 0.85

Calls 2

deepStrictEqualFunction · 0.90
toJSONMethod · 0.65

Tested by

no test coverage detected