2026-02-16 06:00:13 +00:00

14 lines
352 B
TypeScript

// Copyright (C) 2024 Dmitry Chestnykh
// MIT License. See LICENSE file for details.
import { describe, expect, it } from 'vitest';
import { wipe } from "./wipe.js";
describe("wipe", () => {
it("should wipe bytes", () => {
const a = new Uint8Array([1, 2, 3, 4]);
wipe(a);
expect(a).toEqual(new Uint8Array(4));
});
});