Update checked-in dependencies
This commit is contained in:
parent
9673b562d9
commit
6410c0691e
28 changed files with 8738 additions and 3194 deletions
10
node_modules/sinon/lib/sinon/proxy.js
generated
vendored
10
node_modules/sinon/lib/sinon/proxy.js
generated
vendored
|
|
@ -120,16 +120,16 @@ var proxyApi = {
|
|||
var args = slice(arguments, 1);
|
||||
var formatter;
|
||||
|
||||
return (format || "").replace(/%(.)/g, function (match, specifyer) {
|
||||
formatter = proxyApi.formatters[specifyer];
|
||||
return (format || "").replace(/%(.)/g, function (match, specifier) {
|
||||
formatter = proxyApi.formatters[specifier];
|
||||
|
||||
if (typeof formatter === "function") {
|
||||
return String(formatter(spyInstance, args));
|
||||
} else if (!isNaN(parseInt(specifyer, 10))) {
|
||||
return sinonFormat(args[specifyer - 1]);
|
||||
} else if (!isNaN(parseInt(specifier, 10))) {
|
||||
return sinonFormat(args[specifier - 1]);
|
||||
}
|
||||
|
||||
return `%${specifyer}`;
|
||||
return `%${specifier}`;
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue