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

11 lines
274 B
JavaScript
Raw Normal View History

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