Skip to content

Commit 48a756a

Browse files
committed
Remove tests for isFile with Node.js' native File and Blob
1 parent 4d3aafb commit 48a756a

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/util/isFile.test.ts

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import {File as NativeFile, Blob as NativeBlob} from "node:buffer"
2-
31
import test from "ava"
42

53
import {File, Blob} from "formdata-node"
@@ -13,12 +11,6 @@ test("Returns true for a File", t => {
1311
t.true(isFile(file))
1412
})
1513

16-
test("Returns true for native File", t => {
17-
const file = new NativeFile(["Content"], "name.txt")
18-
19-
t.true(isFile(file))
20-
})
21-
2214
test("Returns true for a class that implements File", t => {
2315
class MyFile implements FileLike {
2416
name = ""
@@ -80,9 +72,3 @@ test("Returns false for Blob", t => {
8072

8173
t.false(isFile(blob))
8274
})
83-
84-
test("Returns false for native Blob", t => {
85-
const blob = new NativeBlob(["Content"], {type: "text/plain"})
86-
87-
t.false(isFile(blob))
88-
})

0 commit comments

Comments
 (0)