diff --git a/cli/tests/unit/file_test.ts b/cli/tests/unit/file_test.ts index 956ab70b289987..cd07715c9e6c7c 100644 --- a/cli/tests/unit/file_test.ts +++ b/cli/tests/unit/file_test.ts @@ -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.