Skip to content

Commit

Permalink
test: await promise from server.close() (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed May 25, 2021
1 parent 76e1063 commit e1b9b81
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ describe("Disablecache Plugin", () => {
await server.ready();
});

afterAll(() => {
server.close();
afterAll(async () => {
await server.close();
});

test("Should set relevant cache response headers", async () => {
Expand Down

0 comments on commit e1b9b81

Please sign in to comment.