MCPcopy
hub / github.com/ro31337/libretaxi / callback

Function callback

test/stateful-test.js:85–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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;

Callers

nothing calls this directly

Calls 2

loadMethod · 0.80
failMethod · 0.80

Tested by

no test coverage detected