summaryrefslogtreecommitdiff
path: root/js/file_test.ts
diff options
context:
space:
mode:
authorKitson Kelly <me@kitsonkelly.com>2019-03-10 04:30:38 +1100
committerRyan Dahl <ry@tinyclouds.org>2019-03-09 12:30:38 -0500
commit034e2cc02829c9244b32232074c7a48af827a2fb (patch)
treebade01606a1ee076c1f753ce99c97ddb1e4edf30 /js/file_test.ts
parent8c7a12d1b258f0ef5ab27f49c424331d43e8d97f (diff)
Migrate from tslint to eslint for linting (#1905)
Diffstat (limited to 'js/file_test.ts')
-rw-r--r--js/file_test.ts5
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);