Browse Source

spelling: specifier

pull/4067/head
Josh Soref 8 years ago
parent
commit
635efd7964
1 changed files with 5 additions and 5 deletions
  1. 10
      test/helpers/sinon.js

10
test/helpers/sinon.js

@ -1708,16 +1708,16 @@ var sinon = (function (formatio) {
var args = slice.call(arguments, 1); var args = slice.call(arguments, 1);
var formatter; var formatter;
return (format || "").replace(/%(.)/g, function (match, specifyer) {
formatter = spyApi.formatters[specifyer];
return (format || "").replace(/%(.)/g, function (match, specifier) {
formatter = spyApi.formatters[specifier];
if (typeof formatter == "function") { if (typeof formatter == "function") {
return formatter.call(null, spy, args); return formatter.call(null, spy, args);
} else if (!isNaN(parseInt(specifyer, 10))) {
return sinon.format(args[specifyer - 1]);
} else if (!isNaN(parseInt(specifier, 10))) {
return sinon.format(args[specifier - 1]);
} }
return "%" + specifyer;
return "%" + specifier;
}); });
} }
}; };

Loading…
Cancel
Save