New Features
- The
chai
module is now included in the extension, no need to download externally - #1313 - This is an update to the script assertion feature released in v2.10.0
- Update CLI to
v1.5.2
Example Code
var chai = require("chai");
var expect = chai.expect;
var assert = chai.assert;
function testChaiFilter() {
tc.test("Response code is 200", function () {
assert.equal(tc.response.status, 200)
})
tc.test("Response code expect to be 200", function () {
expect(tc.response.status).to.equal(200);
})
}
module.exports = [testChaiFilter]