Ensure no message added on asym. match success

This commit is contained in:
ksvitkovsky
2017-08-04 15:29:59 +04:00
committed by Gregg Van Hove
parent 8dd0ad531c
commit 1db81c334d
2 changed files with 8 additions and 4 deletions

View File

@@ -570,9 +570,9 @@ describe("toEqual", function() {
it("does not report a mismatch when asymmetric matchers are satisfied", function() {
var actual = {a: 'a'},
expected = {a: jasmineUnderTest.any(String)},
message = 'Expected $.a = 1 to equal <jasmine.any(String)>.';
expected = {a: jasmineUnderTest.any(String)};
expect(compareEquals(actual, expected).message).toEqual('');
expect(compareEquals(actual, expected).pass).toBe(true)
});