-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5feb45e
commit 11ed65f
Showing
4 changed files
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export default { | ||
files: ["./test/**/*.test.ts"], | ||
extensions: { | ||
ts: "module", | ||
}, | ||
nodeArguments: ["--no-warnings", "--loader=tsx"], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,9 @@ | ||
import { test } from "uvu"; | ||
import * as assert from "uvu/assert"; | ||
import test from "ava"; | ||
import atob from "atob"; | ||
import { toUint8Array } from "../src/toUint8Array.js"; | ||
|
||
test("convert given base64 string to an Uint8Array", () => { | ||
test("convert given base64 string to an Uint8Array", (t) => { | ||
const actual = toUint8Array("BIW2q45TM1wfJz9", atob); | ||
|
||
assert.equal(actual.toString(), "4,133,182,171,142,83,51,92,31,39,63"); | ||
t.is(actual.toString(), "4,133,182,171,142,83,51,92,31,39,63"); | ||
}); | ||
|
||
test.run(); |