MCPcopy Index your code
hub / github.com/witheve/Eve / convert

Function convert

test/eavs.ts:15–21  ·  view source on GitHub ↗
(thing, assert)

Source from the content-addressed store, hash-verified

13}
14
15function convert(thing, assert) {
16 let {index, changes} = setup();
17 let id = fromJS(changes, thing, "http", "session");
18 changes.commit();
19 let reconstituted = toJS(index, id);
20 assert.deepEqual(reconstituted, thing);
21}
22
23test("converting js objects to eavs and back", (assert) => {
24 convert({foo: "bar", blah: "baz"}, assert);

Callers 1

eavs.tsFile · 0.85

Calls 4

fromJSFunction · 0.90
toJSFunction · 0.90
setupFunction · 0.85
commitMethod · 0.45

Tested by

no test coverage detected