If you change the last step of the feature from
Then "Grace Hopper" has a score of 15
to
Then "Grace Hopper" has a score of 500000
The scenario will still pass.
To solve this I included chai.js in the test/lib, and replace this line with
var expect = require('../../lib/chai.js').expect;
expect(parseInt(value)).to.equal(parseInt(points));
If you change the last step of the feature from
Then "Grace Hopper" has a score of 15to
Then "Grace Hopper" has a score of 500000The scenario will still pass.
To solve this I included
chai.jsin thetest/lib, and replace this line with