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,17 @@
import assert from "node:assert";
import { describe, test } from "node:test";
import DeepMapTree from "../../src/drivers/DeepMapTree.js";
import { Tree } from "../../src/internal.js";
describe("DeepMapTree", () => {
test("returns a DeepMapTree for value that's a Map", async () => {
const tree = new DeepMapTree([
["a", 1],
["map", new Map([["b", 2]])],
]);
const map = await tree.get("map");
assert.equal(map instanceof DeepMapTree, true);
assert.deepEqual(await Tree.plain(map), { b: 2 });
assert.equal(map.parent, tree);
});
});