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

View File

@@ -1,13 +1,13 @@
describe('toBeNaN', function() {
it('passes for NaN with a custom .not fail', function() {
const matcher = jasmineUnderTest.matchers.toBeNaN();
const matcher = privateUnderTest.matchers.toBeNaN();
const result = matcher.compare(Number.NaN);
expect(result.pass).toBe(true);
expect(result.message).toEqual('Expected actual not to be NaN.');
});
it('fails for anything not a NaN', function() {
const matcher = jasmineUnderTest.matchers.toBeNaN();
const matcher = privateUnderTest.matchers.toBeNaN();
let result;
result = matcher.compare(1);
@@ -27,8 +27,8 @@ describe('toBeNaN', function() {
});
it('has a custom message on failure', function() {
const matcher = jasmineUnderTest.matchers.toBeNaN({
pp: jasmineUnderTest.makePrettyPrinter()
const matcher = privateUnderTest.matchers.toBeNaN({
pp: privateUnderTest.makePrettyPrinter()
}),
result = matcher.compare(0);