Skip to content

Commit

Permalink
add more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
tapaswenipathak committed Jun 9, 2018
1 parent 3834101 commit 7b21924
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/worker.test.js
Expand Up @@ -57,6 +57,7 @@ test('[worker] fail', async (assert) => {

assert.ok(logger.workerFailure.calledWith(results), 'logs worker failure');
assert.equal(message.retry.callCount, 1, 'calls message.retry()');
assert.ok(logger.workerFailure.callCount, '1', 'calls workerFailure once');

logger.teardown();
assert.end();
Expand All @@ -74,6 +75,7 @@ test('[worker] noop', async (assert) => {
console.log(logger.workerSuccess.args[0][0]);
assert.ok(logger.workerSuccess.calledWith(results), 'logs worker result');
assert.equal(message.retry.callCount, 1, 'calls message.retry()');
assert.ok(logger.workerSuccess.callCount, 1, 'calls workerSuccess once');

logger.teardown();
assert.end();
Expand Down

0 comments on commit 7b21924

Please sign in to comment.