Skip to content

Commit 6f8326e

Browse files
committed
Use node: prefix for builtin modules
1 parent 57fc40b commit 6f8326e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/FormDataEncoder.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import {promises as fs} from "fs"
2-
import {Readable} from "stream"
3-
import {EOL} from "os"
1+
import {readFile} from "node:fs/promises"
2+
import {Readable} from "node:stream"
3+
import {EOL} from "node:os"
44

55
import test from "ava"
66

@@ -384,7 +384,7 @@ test("Yields File's content", async t => {
384384
const filePath = "license"
385385
const form = new FormData()
386386

387-
const expected = await fs.readFile(filePath, "utf-8")
387+
const expected = await readFile(filePath, "utf-8")
388388

389389
form.set("license", await fileFromPath(filePath))
390390

0 commit comments

Comments
 (0)