Skip to content

Commit

Permalink
js: remove test assertions that depend on mocha internals and are out…
Browse files Browse the repository at this point in the history
…side our

control.
  • Loading branch information
jleyba committed Jun 7, 2015
1 parent 5312b9f commit f1a904e
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ describe('Mocha Integration', function() {
promise.controlFlow().removeListener(
promise.ControlFlow.EventType.RESET, onreset);
assert.ok(flowReset, 'control flow was not reset after a timeout');
assert.ok(timeoutErr instanceof Error);
assert.equal(timeoutErr.message, 'timeout of 50ms exceeded');
});

function onreset() {
Expand Down Expand Up @@ -179,4 +177,4 @@ describe('ControlFlow and "done" work together', function() {
after(function() {
assert.deepEqual([1, 2, 3, 4], order);
})
});
});

0 comments on commit f1a904e

Please sign in to comment.