Skip to content

Commit

Permalink
test(fetch): File coverage (nodejs#1206)
Browse files Browse the repository at this point in the history
  • Loading branch information
RaisinTen authored and metcoder95 committed Dec 26, 2022
1 parent eb2d4a3 commit 0afa06d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/fetch/client-fetch.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,17 @@ const { Blob } = require('buffer')
const { fetch, Response, Request, FormData, File } = require('../..')

test('args validation', (t) => {
t.plan(2)
t.plan(3)

t.throws(() => {
File.prototype.name.call(null)
}, TypeError)
t.throws(() => {
File.prototype.lastModified.call(null)
}, TypeError)
t.throws(() => {
File.prototype[Symbol.toStringTag].call(null)
}, TypeError)
})

test('return value of File.lastModified', (t) => {
Expand Down

0 comments on commit 0afa06d

Please sign in to comment.