Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
Given('a passed {word} with', (word: string, arg: any) => undefined)
Given('a passed {word} with text attachment {string}', function(word: string, attachmentText: string) {
this.attach(attachmentText, 'text/plain')
})
When('a failed {word}', () => {
throw new Error('Some error')
})
When('a failed {word} with', () => {
throw new Error('Some error')
})
Then('a skipped {word}', (word: string) => {
throw new Error('Should never be called')
})