Skip to content

Commit 8ece077

Browse files
committed
docs: elaborate on test
1 parent 68d9b02 commit 8ece077

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

test/unit/node/app.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,9 @@ describe("createApp", () => {
7575
server.close()
7676
})
7777

78-
it("should reject errors", async () => {
78+
it("should reject errors that happen before the server can listen", async () => {
79+
// We listen on an invalid port
80+
// causing the app to reject the Promise called at startup
7981
const port = 2
8082
const defaultArgs = await setDefaults({
8183
port,

0 commit comments

Comments
 (0)