Skip to content

Commit

Permalink
fix encoding tests: avoid using node:test (#38)
Browse files Browse the repository at this point in the history
A small regression from #35
  • Loading branch information
AaronO authored Feb 8, 2024
1 parent 23b36a9 commit e887217
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions src/encoding/base32.test.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import { expect } from "vitest";
import { test } from "vitest";
import { describe, expect, test } from "vitest";
import { base32 as base32Reference } from "@scure/base";
import { base32 } from "./base32.js";
import { describe } from "node:test";

describe("Base32.encode()", () => {
test("Generates valid string", () => {
Expand Down
4 changes: 1 addition & 3 deletions src/encoding/base64.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { expect } from "vitest";
import { test } from "vitest";
import { describe, expect, test } from "vitest";
import { base64 } from "./base64.js";
import { describe } from "node:test";

describe("Base64.encode()", () => {
test("Generates valid string", () => {
Expand Down
4 changes: 1 addition & 3 deletions src/encoding/hex.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
import { expect } from "vitest";
import { test } from "vitest";
import { describe, expect, test } from "vitest";
import { encodeHex, decodeHex } from "./hex.js";
import { describe } from "node:test";

describe("encodeHex()", () => {
test("Generates valid hex string", () => {
Expand Down

0 comments on commit e887217

Please sign in to comment.