From 85d35f0bbf365812e3471b94a0c44ddcc72b0e8d Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Tue, 28 Nov 2023 21:10:28 +0000 Subject: [PATCH] test: return promises directly See https://eslint.org/docs/latest/rules/no-return-await --- src/index.test.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/index.test.js b/src/index.test.js index 9fd30e6..1a97c22 100644 --- a/src/index.test.js +++ b/src/index.test.js @@ -19,9 +19,7 @@ describe("Disablecache plugin", () => { await server.ready(); }); - afterAll(async () => { - await server.close(); - }); + afterAll(async () => server.close()); it("Sets relevant cache response headers", async () => { const response = await server.inject({