Skip to content

Commit

Permalink
Update t.fail usage in e2e tests
Browse files Browse the repository at this point in the history
Co-Authored-By: Hans Ott <[email protected]>
  • Loading branch information
timokoessler and hansott committed Nov 25, 2024
1 parent 8b4f1ca commit 4fc83b2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions end2end/tests/hono-prisma.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ t.test("it blocks in blocking mode", (t) => {
});

server.on("error", (err) => {
t.fail(err.message);
t.fail(err);
});

let stdout = "";
Expand Down Expand Up @@ -70,7 +70,7 @@ t.test("it blocks in blocking mode", (t) => {
t.match(stderr, /Zen has blocked an SQL injection/);
})
.catch((error) => {
t.fail(error.message);
t.fail(error);
})
.finally(() => {
server.kill();
Expand All @@ -87,7 +87,7 @@ t.test("it does not block in non-blocking mode", (t) => {
});

server.on("error", (err) => {
t.fail(err.message);
t.fail(err);
});

let stdout = "";
Expand Down Expand Up @@ -121,7 +121,7 @@ t.test("it does not block in non-blocking mode", (t) => {
t.notMatch(stderr, /Zen has blocked an SQL injection/);
})
.catch((error) => {
t.fail(error.message);
t.fail(error);
})
.finally(() => {
server.kill();
Expand Down

0 comments on commit 4fc83b2

Please sign in to comment.