Skip to content

Commit 1a5609e

Browse files
committed
Ref: consistent assertions in test for server helpers.
1 parent cb4a82c commit 1a5609e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

express-zod-api/tests/server-helpers.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,7 @@ describe("Server helpers", () => {
9898
expect(spy.mock.calls[0][0].response).toEqual(responseMock);
9999
});
100100

101-
test.each([
102-
() => assert.fail("I am faulty"),
103-
async () => assert.fail("I am faulty"),
104-
])(
101+
test.each([() => fail("I am faulty"), () => Promise.reject("I am faulty")])(
105102
"should call Last Resort Handler in case of ResultHandler is faulty %#",
106103
async (rhImpl) => {
107104
const errorHandler = new ResultHandler({

0 commit comments

Comments
 (0)