Skip to content

Commit

Permalink
feat: Updated test/api.test.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Sep 26, 2023
1 parent 13b8136 commit 91a43ba
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/api.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ app.inject({
});

// Test for GET /api/ping
app.inject({
server.inject({
method: 'GET',
url: '/api/ping'
}, (err, response) => {
Expand All @@ -33,6 +33,5 @@ app.inject({
assert.strictEqual(response.headers['content-type'], 'application/json; charset=utf-8');
});

app.close().catch((err) => console.error(err));

app.close().catch((err) => console.error(err));
// The server should not be closed yet, as per user's comment
// server.close().catch((err) => console.error(err));

0 comments on commit 91a43ba

Please sign in to comment.