()
| 83 | |
| 84 | // to be executed on save ("line A" below) |
| 85 | const callback = () => { |
| 86 | new Demo('test_state_key').load().then((demo) => { |
| 87 | t.is(demo.state.x, 3); |
| 88 | t.end(); |
| 89 | }) |
| 90 | .catch((err) => { |
| 91 | t.fail(`ERR4: ${err}`); |
| 92 | }); |
| 93 | }; |
| 94 | |
| 95 | new Demo('test_state_key').load().then((demo) => { |
| 96 | const state = demo.state; |