Skip to content

Commit

Permalink
fix unstable exception test
Browse files Browse the repository at this point in the history
  • Loading branch information
tjanczuk committed Sep 20, 2014
1 parent 8644b9f commit 7c110ce
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions test/201_patterns.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,8 @@ describe('call patterns', function () {
var lambda = func(null, true);
assert.equal(typeof lambda, 'function');
lambda(null, function (error, result) {
assert.throws(
function () { throw error; },
function (error) {
if ((error instanceof Error) && error.Message.match(/Test .NET exception/)) {
return true;
}
return false;
},
'Unexpected result'
);
assert.ok(error instanceof Error);
assert.ok(error.Message.match(/Test .NET exception/));
done();
});
});
Expand Down

0 comments on commit 7c110ce

Please sign in to comment.