Skip to content
This repository has been archived by the owner on Sep 21, 2022. It is now read-only.

Commit

Permalink
test: add method 'calledOnceWith' to 'assert'
Browse files Browse the repository at this point in the history
  • Loading branch information
DudaGod committed Aug 23, 2017
1 parent a6eee4e commit 9fa38b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/assert-ext.js
@@ -0,0 +1,4 @@
global.assert.calledOnceWith = function() {
assert.calledOnce(arguments[0]);
assert.calledWith.apply(null, arguments);
};
1 change: 1 addition & 0 deletions test/mocha.opts
@@ -1,2 +1,3 @@
--require ./test/setup
--require ./test/assert-ext
-t 0

0 comments on commit 9fa38b5

Please sign in to comment.