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

Commit 93a9b6a

Browse files
committed
test: add method 'calledOnceWith' to 'assert'
1 parent 084c7a0 commit 93a9b6a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

test/assert-ext.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
'use strict';
2+
3+
global.assert.calledOnceWith = function() {
4+
assert.calledOnce(arguments[0]);
5+
assert.calledWith.apply(null, arguments);
6+
};

test/mocha.opts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
--require ./test/setup
2+
--require ./test/assert-ext
23
-t 0

0 commit comments

Comments
 (0)