Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it("calls api#createStatementDiagnosticsReport with statement fingerprint as payload", () => {
const statementFingerprint = "some-id";
const action = createStatementDiagnosticsReportAction(
statementFingerprint,
);
const diagnosticsReportRequest = new CreateStatementDiagnosticsReportRequest(
{
statement_fingerprint: statementFingerprint,
},
);
return expectSaga(createDiagnosticsReportSaga, action)
.provide([
[call.fn(createStatementDiagnosticsReport), Promise.resolve()],
])
.call(createStatementDiagnosticsReport, diagnosticsReportRequest)
.put(createStatementDiagnosticsReportCompleteAction())
.dispatch(action)
.run();
});
});