Fix failure messages for positive/negative infinity matchers

- Fixes #1674
This commit is contained in:
Gregg Van Hove
2019-04-16 17:39:20 -07:00
parent fd60b5737c
commit 2fbeb201bc
5 changed files with 12 additions and 12 deletions

View File

@@ -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;

View File

@@ -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;