summaryrefslogtreecommitdiff
path: root/std/encoding/base32_test.ts
diff options
context:
space:
mode:
Diffstat (limited to 'std/encoding/base32_test.ts')
-rw-r--r--std/encoding/base32_test.ts11
1 files changed, 4 insertions, 7 deletions
diff --git a/std/encoding/base32_test.ts b/std/encoding/base32_test.ts
index 6a8734fd0..eb51e44ab 100644
--- a/std/encoding/base32_test.ts
+++ b/std/encoding/base32_test.ts
@@ -1,7 +1,6 @@
// Test cases copied from https://github.com/LinusU/base32-encode/blob/master/test.js
// Copyright (c) 2016-2017 Linus Unnebäck. MIT license.
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
-import { test, runIfMain } from "../testing/mod.ts";
import { assertEquals, assert } from "../testing/asserts.ts";
import { encode, decode } from "./base32.ts";
@@ -87,7 +86,7 @@ const testCases = [
]
];
-test({
+Deno.test({
name: "[encoding.base32] encode",
fn(): void {
for (const [bin, b32] of testCases) {
@@ -96,7 +95,7 @@ test({
}
});
-test({
+Deno.test({
name: "[encoding.base32] decode",
fn(): void {
for (const [bin, b32] of testCases) {
@@ -105,7 +104,7 @@ test({
}
});
-test({
+Deno.test({
name: "[encoding.base32] decode bad length",
fn(): void {
let errorCaught = false;
@@ -121,7 +120,7 @@ test({
}
});
-test({
+Deno.test({
name: "[encoding.base32] decode bad padding",
fn(): void {
let errorCaught = false;
@@ -134,5 +133,3 @@ test({
assert(errorCaught);
}
});
-
-runIfMain(import.meta);