diff --git a/lib/jasmine-core/jasmine.js b/lib/jasmine-core/jasmine.js index ba1ef9f2..492f70ef 100644 --- a/lib/jasmine-core/jasmine.js +++ b/lib/jasmine-core/jasmine.js @@ -4278,9 +4278,9 @@ getJasmineRequireObj().toBeNegativeInfinity = function(j$) { }; if (result.pass) { - result.message = 'Expected actual to be -Infinity.'; + result.message = 'Expected actual not to be -Infinity.'; } else { - result.message = function() { return 'Expected ' + j$.pp(actual) + ' not to be -Infinity.'; }; + result.message = function() { return 'Expected ' + j$.pp(actual) + ' to be -Infinity.'; }; } return result; @@ -4328,9 +4328,9 @@ getJasmineRequireObj().toBePositiveInfinity = function(j$) { }; if (result.pass) { - result.message = 'Expected actual to be Infinity.'; + result.message = 'Expected actual not to be Infinity.'; } else { - result.message = function() { return 'Expected ' + j$.pp(actual) + ' not to be Infinity.'; }; + result.message = function() { return 'Expected ' + j$.pp(actual) + ' to be Infinity.'; }; } return result; diff --git a/spec/core/matchers/toBeNegativeInfinitySpec.js b/spec/core/matchers/toBeNegativeInfinitySpec.js index 8b544412..4aca8978 100644 --- a/spec/core/matchers/toBeNegativeInfinitySpec.js +++ b/spec/core/matchers/toBeNegativeInfinitySpec.js @@ -17,7 +17,7 @@ describe("toBeNegativeInfinity", function() { var matcher = jasmineUnderTest.matchers.toBeNegativeInfinity(), result = matcher.compare(0); - expect(result.message()).toEqual("Expected 0 not to be -Infinity.") + expect(result.message()).toEqual("Expected 0 to be -Infinity.") }); it("succeeds for -Infinity", function() { @@ -25,7 +25,7 @@ describe("toBeNegativeInfinity", function() { result = matcher.compare(Number.NEGATIVE_INFINITY); expect(result.pass).toBe(true); - expect(result.message).toEqual("Expected actual to be -Infinity.") + expect(result.message).toEqual("Expected actual not to be -Infinity.") }); }); diff --git a/spec/core/matchers/toBePositiveInfinitySpec.js b/spec/core/matchers/toBePositiveInfinitySpec.js index 73d6285b..239833d9 100644 --- a/spec/core/matchers/toBePositiveInfinitySpec.js +++ b/spec/core/matchers/toBePositiveInfinitySpec.js @@ -17,7 +17,7 @@ describe("toBePositiveInfinity", function() { var matcher = jasmineUnderTest.matchers.toBePositiveInfinity(), result = matcher.compare(0); - expect(result.message()).toEqual("Expected 0 not to be Infinity.") + expect(result.message()).toEqual("Expected 0 to be Infinity.") }); it("succeeds for Infinity", function() { @@ -25,7 +25,7 @@ describe("toBePositiveInfinity", function() { result = matcher.compare(Number.POSITIVE_INFINITY); expect(result.pass).toBe(true); - expect(result.message).toEqual("Expected actual to be Infinity.") + expect(result.message).toEqual("Expected actual not to be Infinity.") }); }); diff --git a/src/core/matchers/toBeNegativeInfinity.js b/src/core/matchers/toBeNegativeInfinity.js index 849c4c69..d7d24d59 100644 --- a/src/core/matchers/toBeNegativeInfinity.js +++ b/src/core/matchers/toBeNegativeInfinity.js @@ -14,9 +14,9 @@ getJasmineRequireObj().toBeNegativeInfinity = function(j$) { }; if (result.pass) { - result.message = 'Expected actual to be -Infinity.'; + result.message = 'Expected actual not to be -Infinity.'; } else { - result.message = function() { return 'Expected ' + j$.pp(actual) + ' not to be -Infinity.'; }; + result.message = function() { return 'Expected ' + j$.pp(actual) + ' to be -Infinity.'; }; } return result; diff --git a/src/core/matchers/toBePositiveInfinity.js b/src/core/matchers/toBePositiveInfinity.js index ec70971c..60acded4 100644 --- a/src/core/matchers/toBePositiveInfinity.js +++ b/src/core/matchers/toBePositiveInfinity.js @@ -14,9 +14,9 @@ getJasmineRequireObj().toBePositiveInfinity = function(j$) { }; if (result.pass) { - result.message = 'Expected actual to be Infinity.'; + result.message = 'Expected actual not to be Infinity.'; } else { - result.message = function() { return 'Expected ' + j$.pp(actual) + ' not to be Infinity.'; }; + result.message = function() { return 'Expected ' + j$.pp(actual) + ' to be Infinity.'; }; } return result;