@@ -1,6 +1,6 @@
|
||||
describe('toBePositiveInfinity', function() {
|
||||
it("fails for anything that isn't Infinity", function() {
|
||||
const matcher = jasmineUnderTest.matchers.toBePositiveInfinity();
|
||||
const matcher = privateUnderTest.matchers.toBePositiveInfinity();
|
||||
let result;
|
||||
|
||||
result = matcher.compare(1);
|
||||
@@ -14,8 +14,8 @@ describe('toBePositiveInfinity', function() {
|
||||
});
|
||||
|
||||
it('has a custom message on failure', function() {
|
||||
const matcher = jasmineUnderTest.matchers.toBePositiveInfinity({
|
||||
pp: jasmineUnderTest.makePrettyPrinter()
|
||||
const matcher = privateUnderTest.matchers.toBePositiveInfinity({
|
||||
pp: privateUnderTest.makePrettyPrinter()
|
||||
}),
|
||||
result = matcher.compare(0);
|
||||
|
||||
@@ -23,7 +23,7 @@ describe('toBePositiveInfinity', function() {
|
||||
});
|
||||
|
||||
it('succeeds for Infinity', function() {
|
||||
const matcher = jasmineUnderTest.matchers.toBePositiveInfinity(),
|
||||
const matcher = privateUnderTest.matchers.toBePositiveInfinity(),
|
||||
result = matcher.compare(Number.POSITIVE_INFINITY);
|
||||
|
||||
expect(result.pass).toBe(true);
|
||||
|
||||
Reference in New Issue
Block a user