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

Function successCallback

test/response-handlers/support/notify-driver-test.js:39–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 t.plan(1);
38 if (!order.isNotified) order.isNotified = () => { return false; };
39 const successCallback = () => { t.fail(); };
40 const failCallback = (reason) => { t.is(reason, failReason); t.end(); };
41 const subject = new NotifyDriver({ successCallback, failCallback, loadUser: loadUser(user) });
42 subject.call('cli_1', 1, order);

Callers

nothing calls this directly

Calls 1

failMethod · 0.80

Tested by

no test coverage detected