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
+6 -6
View File
@@ -1,20 +1,20 @@
describe('Empty', function() {
it('matches an empty object', function() {
const empty = new jasmineUnderTest.Empty();
const empty = new privateUnderTest.Empty();
expect(empty.asymmetricMatch({})).toBe(true);
expect(empty.asymmetricMatch({ undefined: false })).toBe(false);
});
it('matches an empty array', function() {
const empty = new jasmineUnderTest.Empty();
const empty = new privateUnderTest.Empty();
expect(empty.asymmetricMatch([])).toBe(true);
expect(empty.asymmetricMatch([1, 12, 3])).toBe(false);
});
it('matches an empty string', function() {
const empty = new jasmineUnderTest.Empty();
const empty = new privateUnderTest.Empty();
expect(empty.asymmetricMatch('')).toBe(true);
expect(empty.asymmetricMatch('')).toBe(true);
@@ -22,7 +22,7 @@ describe('Empty', function() {
});
it('matches an empty map', function() {
const empty = new jasmineUnderTest.Empty();
const empty = new privateUnderTest.Empty();
const fullMap = new Map();
fullMap.set('thing', 2);
@@ -31,7 +31,7 @@ describe('Empty', function() {
});
it('matches an empty set', function() {
const empty = new jasmineUnderTest.Empty();
const empty = new privateUnderTest.Empty();
const fullSet = new Set();
fullSet.add(3);
@@ -40,7 +40,7 @@ describe('Empty', function() {
});
it('matches an empty typed array', function() {
const empty = new jasmineUnderTest.Empty();
const empty = new privateUnderTest.Empty();
expect(empty.asymmetricMatch(new Int16Array())).toBe(true);
expect(empty.asymmetricMatch(new Int16Array([1, 2]))).toBe(false);