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 retrieve the item', async () => {
mapping = new MessageWorkflowMapping (
cmd => cmd.property1,
'property1'
)
const results = await sut.getWorkflowData(
TestWorkflowData,
mapping,
testCommand,
messageOptions
)
expect(results).toHaveLength(1)
dataV1 = results[0]
expect(dataV1).toMatchObject({ ...workflowData, $version: 1 })
})