Skip to content

Commit 3b63433

Browse files
committed
test(abort-signal): assert throwIfAborted error message
The mutation-diff gate reports a surviving StringLiteral mutant on the throwIfAborted message literal. Assert the exact message so a blanked literal fails the suite.
1 parent 1a63893 commit 3b63433

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/api/providers/utils/__tests__/abort-signal.spec.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ describe("abort-signal utilities", () => {
130130

131131
expect(caught).toBeInstanceOf(Error)
132132
expect((caught as Error).name).toBe("AbortError")
133+
expect((caught as Error).message).toBe("This operation was aborted")
133134
})
134135
})
135136

0 commit comments

Comments
 (0)