Move private APIs to private namespace

Fixes #2078
This commit is contained in:
Steve Gravrock
2025-09-27 13:21:09 -07:00
parent fbec066837
commit 168ff0a751
183 changed files with 2627 additions and 2459 deletions
@@ -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);