UNPKG

@wener/console

Version:
17 lines (16 loc) 372 B
import { assert, test } from "vitest"; import { DynamicStore } from "./DynamicStore.js"; test("DynamicStore", function () { var store = new DynamicStore(); { var s = store.as(); s.add("a.b", "1"); s.add("a.b", [ "2" ]); assert.deepEqual(s.collect("a.b"), [ "1", "2" ]); } });