Skip to content

Commit

Permalink
tests
Browse files Browse the repository at this point in the history
  • Loading branch information
juergba committed Jan 10, 2019
1 parent c458e21 commit aa4fd16
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/unit/suite.spec.js
Expand Up @@ -390,7 +390,7 @@ describe('Suite', function() {
describe('when there is a parent', function() {
describe('the parent is the root suite', function() {
it('returns the suite title', function() {
var parentSuite = new Suite('');
var parentSuite = new Suite('', {}, true);
parentSuite.addSuite(this.suite);
expect(this.suite.titlePath(), 'to equal', ['A Suite']);
});
Expand Down Expand Up @@ -493,6 +493,16 @@ describe('Suite', function() {
new Suite('Bdd suite', 'root');
}, 'not to throw');
});

it('should be root suite', function() {
var rootSuite = new Suite('', {}, true);
expect(rootSuite.root, 'to be', true);
});

it('should not be root suite', function() {
var suite = new Suite('');
expect(suite.root, 'to be', false);
});
});

describe('timeout()', function() {
Expand Down

0 comments on commit aa4fd16

Please sign in to comment.