(thing, assert)
| 13 | } |
| 14 | |
| 15 | function 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 | |
| 23 | test("converting js objects to eavs and back", (assert) => { |
| 24 | convert({foo: "bar", blah: "baz"}, assert); |