diff options
Diffstat (limited to 'js/file_test.ts')
-rw-r--r-- | js/file_test.ts | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/js/file_test.ts b/js/file_test.ts index 77320c113..65ddfde92 100644 --- a/js/file_test.ts +++ b/js/file_test.ts @@ -1,7 +1,7 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assert, assertEquals } from "./test_util.ts"; -function testFirstArgument(arg1, expectedSize) { +function testFirstArgument(arg1, expectedSize): void { const file = new File(arg1, "name"); assert(file instanceof File); assertEquals(file.name, "name"); @@ -22,7 +22,6 @@ test(function fileUnicodeStringFileBits() { }); test(function fileStringObjectFileBits() { - // tslint:disable-next-line no-construct testFirstArgument([new String("string object")], 13); }); @@ -77,7 +76,7 @@ test(function fileObjectInFileBits() { testFirstArgument([{}], 15); }); -function testSecondArgument(arg2, expectedFileName) { +function testSecondArgument(arg2, expectedFileName): void { const file = new File(["bits"], arg2); assert(file instanceof File); assertEquals(file.name, expectedFileName); |