From de7d804ca00b55c552538b108a89a3dbfeba40ce Mon Sep 17 00:00:00 2001 From: Dorian Niemiec Date: Sat, 31 Aug 2024 20:50:10 +0200 Subject: [PATCH] Lint out the static file serving and directory listing middleware test script --- .../middleware/staticFileServingAndDirectoryListing.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/middleware/staticFileServingAndDirectoryListing.test.js b/tests/middleware/staticFileServingAndDirectoryListing.test.js index e05fe0d..db065a0 100644 --- a/tests/middleware/staticFileServingAndDirectoryListing.test.js +++ b/tests/middleware/staticFileServingAndDirectoryListing.test.js @@ -198,7 +198,7 @@ describe("Static file serving and directory listings middleware", () => { cb(null, { isDirectory: () => false, isFile: () => true, - size: 9 + size: 9, }); } }); @@ -229,7 +229,7 @@ describe("Static file serving and directory listings middleware", () => { destStream.end("mock data"); } return destStream; - } + }, }; fs.createReadStream.mockImplementation(() => { @@ -240,5 +240,5 @@ describe("Static file serving and directory listings middleware", () => { expect(res.statusCode).toBe(200); expect(res._getData()).toBe("mock data"); - }) + }); });