Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should receive and dispatch to the handler', async () => {
await sleep(1000 * 2)
handleChecker.verify(
h => h.check(It.isObjectWith(messageOptions)),
Times.once()
)
})
})
beforeAll(async () => {
await bus.publish(
assignmentReassigned,
{ correlationId: startedWorkflowData[0].$workflowId, attributes: {}, stickyAttributes: {} }
)
await sleep(CONSUME_TIMEOUT)
nextWorkflowData = await persistence.getWorkflowData(
AssignmentWorkflowData,
propertyMapping,
assignmentAssigned,
messageOptions,
true
)
})