Skip to content

Commit

Permalink
should -> expect
Browse files Browse the repository at this point in the history
  • Loading branch information
ScottFreeCode committed Sep 29, 2017
1 parent b200022 commit 0f816ac
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/unit/suite.spec.js
Expand Up @@ -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);
// });
// });

Expand Down Expand Up @@ -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']);
});
});

Expand All @@ -411,15 +411,15 @@ 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']);
});
});

describe('the parent is not the root 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']);
});
});
});
Expand Down

0 comments on commit 0f816ac

Please sign in to comment.