Skip to content

Commit

Permalink
remove mentions of non existing thenYields (sinonjs#244)
Browse files Browse the repository at this point in the history
  • Loading branch information
tf committed Oct 18, 2013
1 parent 228e9c8 commit 185c3d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/sinon/behavior.js
Expand Up @@ -312,7 +312,7 @@
for (var method in proto) {
// need to avoid creating anotherasync versions of the newly added async methods
if (proto.hasOwnProperty(method) &&
method.match(/^(callsArg|yields|thenYields$)/) &&
method.match(/^(callsArg|yields)/) &&
!method.match(/Async/)) {
proto[method + 'Async'] = (function (syncFnName) {
return function () {
Expand Down
4 changes: 2 additions & 2 deletions test/sinon/stub_test.js
Expand Up @@ -22,14 +22,14 @@ buster.testCase("sinon.stub", {
assert.isFunction(stub.calledOn);
},

"should contain asynchronous versions of callsArg*, yields*, and thenYields methods": function() {
"should contain asynchronous versions of callsArg*, and yields* methods": function() {
var stub = sinon.stub.create();

var syncVersions = 0;
var asyncVersions = 0;

for (var method in stub) {
if (stub.hasOwnProperty(method) && method.match(/^(callsArg|yields|thenYields$)/)) {
if (stub.hasOwnProperty(method) && method.match(/^(callsArg|yields)/)) {
if (!method.match(/Async/)) {
syncVersions++;
} else if (method.match(/Async/)) {
Expand Down

0 comments on commit 185c3d7

Please sign in to comment.