(f: () => unknown, includes: string)
| 4 | import type * as Schema from "effect/Schema" |
| 5 | |
| 6 | const expectMessage = (f: () => unknown, includes: string) => { |
| 7 | throws(f, (e) => { |
| 8 | if (e instanceof Error && e.message.includes(includes)) return undefined |
| 9 | throw e |
| 10 | }) |
| 11 | } |
| 12 | |
| 13 | const expectAppliesTo = (patch: JsonPatch.JsonPatch, oldValue: Schema.Json, newValue: Schema.Json) => { |
| 14 | deepStrictEqual(JsonPatch.apply(patch, oldValue), newValue) |
no test coverage detected