diff options
author | Kitson Kelly <me@kitsonkelly.com> | 2020-08-25 09:43:54 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-24 19:43:54 -0400 |
commit | c4d5b01acfe0cac31f94743a57e8e619178ba563 (patch) | |
tree | 1987fe2e23c4db59a44159f4c7d21ecc61be4ad3 /cli/tests/unit/blob_test.ts | |
parent | 9b0f9c876529696c8008dda8b3606e34d3fe98dc (diff) |
feat: update to TypeScript 4.0 (#6514)
Diffstat (limited to 'cli/tests/unit/blob_test.ts')
-rw-r--r-- | cli/tests/unit/blob_test.ts | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/cli/tests/unit/blob_test.ts b/cli/tests/unit/blob_test.ts index 494c2ac75..7ef9b0125 100644 --- a/cli/tests/unit/blob_test.ts +++ b/cli/tests/unit/blob_test.ts @@ -46,11 +46,12 @@ unitTest(function blobShouldNotThrowError(): void { let hasThrown = false; try { - const options1: object = { + // eslint-disable-next-line @typescript-eslint/no-explicit-any + const options1: any = { ending: "utf8", hasOwnProperty: "hasOwnProperty", }; - const options2: object = Object.create(null); + const options2 = Object.create(null); new Blob(["Hello World"], options1); new Blob(["Hello World"], options2); } catch { @@ -61,9 +62,9 @@ unitTest(function blobShouldNotThrowError(): void { }); unitTest(function nativeEndLine(): void { - const options: object = { + const options = { ending: "native", - }; + } as const; const blob = new Blob(["Hello\nWorld"], options); assertEquals(blob.size, Deno.build.os === "windows" ? 12 : 11); |