diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2024-03-08 18:18:24 -0500 |
---|---|---|
committer | Timmy Willison <timmywil@users.noreply.github.com> | 2024-03-09 10:36:47 -0500 |
commit | 5aa7ed888ddf314fba3c4f8750b891cb6427c9c2 (patch) | |
tree | 33bed551762397ac376da1ca2d458c3f2e88e883 /test/runner | |
parent | 0293d3e30dd68bfe92be1d6d29f9b9200d1ae917 (diff) | |
download | jquery-5aa7ed888ddf314fba3c4f8750b891cb6427c9c2.tar.gz jquery-5aa7ed888ddf314fba3c4f8750b891cb6427c9c2.zip |
Build: drop support for Node 10
Close gh-5436
Diffstat (limited to 'test/runner')
-rw-r--r-- | test/runner/createTestServer.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/runner/createTestServer.js b/test/runner/createTestServer.js index b78fed278..d9ea9e280 100644 --- a/test/runner/createTestServer.js +++ b/test/runner/createTestServer.js @@ -1,12 +1,12 @@ import bodyParser from "body-parser"; import express from "express"; import bodyParserErrorHandler from "express-body-parser-error-handler"; -import fs from "fs"; +import { readFile } from "fs/promises"; import mockServer from "../middleware-mockserver.cjs"; export async function createTestServer( report ) { - const nameHTML = await fs.promises.readFile( "./test/data/name.html", "utf8" ); - const indexHTML = await fs.promises.readFile( "./test/index.html", "utf8" ); + const nameHTML = await readFile( "./test/data/name.html", "utf8" ); + const indexHTML = await readFile( "./test/index.html", "utf8" ); const app = express(); // Redirect home to test page |