MCPcopy Index your code
hub / github.com/bugy/script-server / mockStopEndpoint

Function mockStopEndpoint

web-src/tests/unit/scriptExecutor_test.js:25–31  ·  view source on GitHub ↗
(id)

Source from the content-addressed store, hash-verified

23}
24
25function mockStopEndpoint(id) {
26 const spy = sinon.spy(function () {
27 return [200];
28 });
29 axiosMock.onPost('executions/stop/' + id).reply(spy);
30 return spy;
31}
32
33function mockExecutionStatus(id, status) {
34 const spy = sinon.spy(function () {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected