Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

should -> expect

Scott Santucci0f816aca5207
diff --git a/test/unit/suite.spec.js b/test/unit/suite.spec.js
index 0e944229..3c3786ef 100644
--- a/test/unit/suite.spec.js
+++ b/test/unit/suite.spec.js
@@ -362,16 +362,16 @@ describe('Suite', function () {
// });
//
// it('sets the parent on the added test', function(){
- // this.test.parent.should.equal(this.suite);
+ // expect(this.test.parent).to.equal(this.suite);
// });
//
// it('copies the timeout value', function(){
- // this.test.timeout().should.equal(4002);
+ // expect(this.test.timeout()).to.equal(4002);
// });
//
// it('adds the test to the tests collection', function(){
- // this.suite.tests.should.have.length(1);
- // this.suite.tests[0].should.equal(this.test);
+ // expect(this.suite.tests).to.have.length(1);
+ // expect(this.suite.tests[0]).to.equal(this.test);
// });
// });
@@ -402,7 +402,7 @@ describe('Suite', function () {
describe('when there is no parent', function () {
it('returns the suite title', function () {
- this.suite.titlePath().should.deepEqual(['A Suite']);
+ expect(this.suite.titlePath()).to.eql(['A Suite']);
});
});
@@ -411,7 +411,7 @@ describe('Suite', function () {
it('returns the suite title', function () {
var parentSuite = new Suite('');
parentSuite.addSuite(this.suite);
- this.suite.titlePath().should.deepEqual(['A Suite']);
+ expect(this.suite.titlePath()).to.eql(['A Suite']);
});
});
@@ -419,7 +419,7 @@ describe('Suite', function () {
it('returns the concatenation of parent\'s and suite\'s title', function () {
var parentSuite = new Suite('I am a parent');
parentSuite.addSuite(this.suite);
- this.suite.titlePath().should.deepEqual(['I am a parent', 'A Suite']);
+ expect(this.suite.titlePath()).to.eql(['I am a parent', 'A Suite']);
});
});
});