diff --git a/lib/sinon-chai.js b/lib/sinon-chai.js index 34ff97f..32d4e4e 100644 --- a/lib/sinon-chai.js +++ b/lib/sinon-chai.js @@ -139,9 +139,9 @@ sinonMethod("calledImmediatelyBefore", "been called immediately before %1"); sinonMethod("calledImmediatelyAfter", "been called immediately after %1"); sinonMethod("calledOn", "been called with %1 as this", ", but it was called with %t instead"); - sinonMethod("calledWith", "been called with arguments %*", "%C"); - sinonMethod("calledWithExactly", "been called with exact arguments %*", "%C"); - sinonMethod("calledWithMatch", "been called with arguments matching %*", "%C"); + sinonMethod("calledWith", "been called with arguments %*", "%D"); + sinonMethod("calledWithExactly", "been called with exact arguments %*", "%D"); + sinonMethod("calledWithMatch", "been called with arguments matching %*", "%D"); sinonMethod("returned", "returned %1"); exceptionalSinonMethod("thrown", "threw", "thrown %1"); })); diff --git a/test/messages.js b/test/messages.js index 3ab5d02..b3c9be4 100644 --- a/test/messages.js +++ b/test/messages.js @@ -234,23 +234,23 @@ describe("Messages", function () { expect(function () { spy.should.have.been.calledWith("a", "b", "c"); - }).to.throw("expected spy to have been called with arguments a, b, c\n spy(1, 2, 3)"); + }).to.throw("expected spy to have been called with arguments a, b, c"); expect(function () { spy.should.have.been.calledWithExactly("a", "b", "c"); - }).to.throw("expected spy to have been called with exact arguments a, b, c\n spy(1, 2, 3)"); + }).to.throw("expected spy to have been called with exact arguments a, b, c"); expect(function () { spy.should.have.been.calledWithMatch(sinon.match("foo")); - }).to.throw("expected spy to have been called with arguments matching match(\"foo\")\n spy(1, 2, 3)"); + }).to.throw("expected spy to have been called with arguments matching match(\"foo\")"); expect(function () { spy.getCall(0).should.have.been.calledWith("a", "b", "c"); - }).to.throw("expected spy to have been called with arguments a, b, c\n spy(1, 2, 3)"); + }).to.throw("expected spy to have been called with arguments a, b, c"); expect(function () { spy.getCall(0).should.have.been.calledWithExactly("a", "b", "c"); - }).to.throw("expected spy to have been called with exact arguments a, b, c\n spy(1, 2, 3)"); + }).to.throw("expected spy to have been called with exact arguments a, b, c"); expect(function () { spy.getCall(0).should.have.been.calledWithMatch(sinon.match("foo")); - }).to.throw("expected spy to have been called with arguments matching match(\"foo\")\n spy(1, 2, 3)"); + }).to.throw("expected spy to have been called with arguments matching match(\"foo\")"); }); it("should be correct for the negated cases", function () {