10 lines
216 B
TypeScript
10 lines
216 B
TypeScript
|
|
import { wipe } from "./wipe";
|
||
|
|
|
||
|
|
describe("wipe", () => {
|
||
|
|
it("should wipe bytes", () => {
|
||
|
|
const a = new Uint8Array([1, 2, 3, 4]);
|
||
|
|
wipe(a);
|
||
|
|
expect(a).toEqual(new Uint8Array(4));
|
||
|
|
});
|
||
|
|
});
|