Skip to content

Commit

Permalink
update error test
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Jul 24, 2014
1 parent 61fd72b commit 3a6429c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/tr_error.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ test('transform errors errback', function (t) {
})
});
b.bundle(function (err, src) {
t.equal(err.message, 'blah');
t.ok(/^blah/.test(err.message));
t.equal(src, undefined);
});
});
Expand All @@ -28,6 +28,6 @@ test('transform errors propagate', function (t) {
});
});
b.bundle().on('error', function (err) {
t.equal(err.message, 'blah');
t.ok(/^blah/.test(err.message));
});
});

0 comments on commit 3a6429c

Please sign in to comment.