Skip to content

Commit

Permalink
Use compound assertions.
Browse files Browse the repository at this point in the history
  • Loading branch information
papandreou committed Jan 8, 2016
1 parent c0ebd26 commit aedd6d2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/unexpected-sinon.js
Expand Up @@ -470,7 +470,7 @@
}

if (expect.flags.always) {
return expect(calls, 'to have items satisfying', 'was called on', target);
return expect(calls, 'to have items satisfying was called on', target);
} else {
var promises = calls.map(function (call) {
return expect.promise(function () {
Expand All @@ -483,7 +483,7 @@
});

if (failed) {
return expect(calls, 'to have items satisfying', 'was called on', target);
return expect(calls, 'to have items satisfying was called on', target);
}
});
}
Expand Down Expand Up @@ -541,7 +541,7 @@
return promise.isRejected();
});
if (failed) {
return expect(calls, 'to have items satisfying', 'not to satisfy', { args: args });
return expect(calls, 'to have items satisfying not to satisfy', { args: args });
}
});
});
Expand All @@ -554,7 +554,7 @@
expect.fail('spy did not throw exception');
}

var args = [calls, 'to have items satisfying', 'threw'];
var args = [calls, 'to have items satisfying threw'];
if (value) {
args.push(value);
}
Expand Down

0 comments on commit aedd6d2

Please sign in to comment.