diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/bun.js/third-party/body-parser-test/express-body-parser-test.test.ts | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/bun.js/third-party/body-parser-test/express-body-parser-test.test.ts b/test/bun.js/third-party/body-parser-test/express-body-parser-test.test.ts index 8e0523b7c..1f95b318e 100644 --- a/test/bun.js/third-party/body-parser-test/express-body-parser-test.test.ts +++ b/test/bun.js/third-party/body-parser-test/express-body-parser-test.test.ts @@ -28,6 +28,7 @@ test("httpServer", async done => { const httpServer = require("http").createServer(app); app.on("error", err => { + console.error(err); done(err); }); app.use(json()); @@ -50,9 +51,9 @@ test("httpServer", async done => { "Content-Type": "application/json", }, }); - - expect(resp.status).toBe(200); expect(await resp.text()).toBe("POST - pong"); + expect(resp.status).toBe(200); + expect(reached).toBe(true); done(); }); |