Update checked-in dependencies
This commit is contained in:
parent
9673b562d9
commit
6410c0691e
28 changed files with 8738 additions and 3194 deletions
14
node_modules/sinon/lib/sinon/assert.js
generated
vendored
14
node_modules/sinon/lib/sinon/assert.js
generated
vendored
|
|
@ -159,10 +159,16 @@ function createAssertObject() {
|
|||
callCount: function assertCallCount(method, count) {
|
||||
verifyIsStub(method);
|
||||
|
||||
if (method.callCount !== count) {
|
||||
var msg = `expected %n to be called ${timesInWords(
|
||||
count
|
||||
)} but was called %c%C`;
|
||||
var msg;
|
||||
if (typeof count !== "number") {
|
||||
msg =
|
||||
`expected ${format(count)} to be a number ` +
|
||||
`but was of type ${typeof count}`;
|
||||
failAssertion(this, msg);
|
||||
} else if (method.callCount !== count) {
|
||||
msg =
|
||||
`expected %n to be called ${timesInWords(count)} ` +
|
||||
`but was called %c%C`;
|
||||
failAssertion(this, method.printf(msg));
|
||||
} else {
|
||||
assert.pass("callCount");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue