Skip to content

Commit

Permalink
fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
aduh95 committed Feb 4, 2023
1 parent 3878026 commit 075af2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cli/tests/unit/file_test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,11 +161,11 @@ Deno.test(function fileConstructorOptionsValidation() {

[{}, [], () => {}, Number, new Number(), new String(), new Boolean()].forEach(
(options) => {
assert.strictEqual(new File([], "", options).lastModified, 3);
assert.strictEqual(new File([], "", options as any).lastModified, 3);
},
);
[0, "", true, Symbol(), 0n].forEach((options) => {
assert.throws(() => new File([], "", options), TypeError);
assert.throws(() => new File([], "", options as any), TypeError);
});

// @ts-ignore cleaning up.
Expand Down

0 comments on commit 075af2b

Please sign in to comment.