1
0
cucumber-js-demo/assertion/features/steps/jest-failure.js

11 lines
267 B
JavaScript
Raw Normal View History

2018-12-31 07:44:25 +01:00
const expect = require('expect')
const { When, Then } = require('cucumber')
const compared = require('../support/compared')
When('I use jest', function () {
})
Then('I see jest diff on failure', function () {
expect(compared.actual).toEqual(compared.expected)
})