Skip to content

Commit

Permalink
fix(tests): catch errors as thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
lewiscowper committed Dec 14, 2015
1 parent 56234d2 commit ac721b8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ test ('confidence check with all styles', function (t) {
html: '<div id="test1" style="font-family: Helvetica; font-size: 16px; font-weight: 400; font-style: normal;"></div>',
scripts: [],
done: function (err, window) {
if (err) {
throw err;
}

global.window = window;

var document = window.document;
Expand All @@ -24,6 +28,10 @@ test ('confidence check with a missing style', function (t) {
html: '<div id="test1" style="font-family: Helvetica; font-weight: 400; font-style: normal;"></div>',
scripts: [],
done: function (err, window) {
if (err) {
throw err;
}

global.window = window;

var document = window.document;
Expand Down

0 comments on commit ac721b8

Please sign in to comment.