diff options
author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-06-12 20:23:38 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-12 15:23:38 -0400 |
commit | 1fff6f55c3ba98a10018c6d374795e612061e9b6 (patch) | |
tree | 12074b6d44736b11513d857e437f9e30a6bf65a4 /std/encoding/base64_test.ts | |
parent | 26bf56afdaf16634ffbaa23684faf3a44cc10f62 (diff) |
refactor: Don't destructure the Deno namespace (#6268)
Diffstat (limited to 'std/encoding/base64_test.ts')
-rw-r--r-- | std/encoding/base64_test.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/std/encoding/base64_test.ts b/std/encoding/base64_test.ts index bd559140a..9e549c698 100644 --- a/std/encoding/base64_test.ts +++ b/std/encoding/base64_test.ts @@ -1,6 +1,4 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. - -const { test } = Deno; import { assertEquals } from "../testing/asserts.ts"; import { encode, decode, decodeString } from "./base64.ts"; @@ -21,25 +19,25 @@ const testsetBinary = [ [new TextEncoder().encode("\x00\x00\x00\x00"), "AAAAAA=="], ]; -test("[encoding/base64] testBase64EncodeString", () => { +Deno.test("[encoding/base64] testBase64EncodeString", () => { for (const [input, output] of testsetString) { assertEquals(encode(input), output); } }); -test("[encoding/base64] testBase64DecodeString", () => { +Deno.test("[encoding/base64] testBase64DecodeString", () => { for (const [input, output] of testsetString) { assertEquals(decodeString(output), input); } }); -test("[encoding/base64] testBase64EncodeBinary", () => { +Deno.test("[encoding/base64] testBase64EncodeBinary", () => { for (const [input, output] of testsetBinary) { assertEquals(encode(input), output); } }); -test("[encoding/base64] testBase64DecodeBinary", () => { +Deno.test("[encoding/base64] testBase64DecodeBinary", () => { for (const [input, output] of testsetBinary) { const outputBinary = new Uint8Array(decode(output as string)); assertEquals(outputBinary, input as Uint8Array); |