@sondr3/minitest
Version:
A low-feature, dependency-free and performant test runner inspired by Rust and Deno
18 lines • 496 B
JavaScript
import { strict as assert } from "node:assert";
import { test } from "./index.js";
import { mapSize } from "./utils.js";
test("mapSize()", () => {
const maps = [
[
new Map([
["a", [1]],
["b", [3]],
]),
2,
],
// because ESLint has terrible type inference >:(
[new Map(), 0],
];
maps.forEach(([map, size]) => assert.equal(mapSize(map), size));
});
//# sourceMappingURL=utils.test.js.map