Skip to content

Commit

Permalink
simplify exception tests in test/unit/suite.spec.js
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
  • Loading branch information
boneskull committed Apr 21, 2018
1 parent c08ba9e commit efe37f9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/unit/suite.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -463,11 +463,11 @@ describe('Suite', function () {
it('should throw an error if the title isn\'t a string', function () {
expect(function () {
new Suite(undefined, 'root');
}, 'to throw', Error);
}, 'to throw');

expect(function () {
new Suite(function () {}, 'root');
}, 'to throw', Error);
}, 'to throw');
});

it('should not throw if the title is a string', function () {
Expand All @@ -483,11 +483,11 @@ describe('Test', function () {
it('should throw an error if the title isn\'t a string', function () {
expect(function () {
new Test(function () {});
}, 'to throw', Error);
}, 'to throw');

expect(function () {
new Test(undefined, function () {});
}, 'to throw', Error);
}, 'to throw');
});

it('should not throw if the title is a string', function () {
Expand Down

0 comments on commit efe37f9

Please sign in to comment.