Financial-Times / n-test

A CLI tool and module for lightweight testing of web applications in browsers, designed for FT.com
4 stars 2 forks source link

content check should allow for assertions as well as return value #87

Closed adgad closed 6 years ago

adgad commented 6 years ago

It's quite common to do:

(content) => {
   expect(content.blah).to.equal(blah);
   ...
}

Currently, this would be an Error, rather than a Fail, which is incorrect.