run npm install to generate a package lock

This commit is contained in:
sashinexists
2024-12-07 13:18:31 +11:00
parent e7d08a91b5
commit 23437d228e
2501 changed files with 290663 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
import assert from "node:assert";
import { describe, test } from "node:test";
import { Tree } from "../../src/internal.js";
import take from "../../src/operations/take.js";
describe("take", () => {
test("limits the number of keys to the indicated count", async () => {
const tree = {
a: 1,
b: 2,
c: 3,
d: 4,
};
const result = await take(tree, 2);
assert.deepEqual(await Tree.plain(result), {
a: 1,
b: 2,
});
});
});