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,6 +1,6 @@
describe('ClearStack', function() {
it('works in an integrationy way', function(done) {
const clearStack = jasmineUnderTest.getClearStack(
const clearStack = privateUnderTest.getClearStack(
jasmineUnderTest.getGlobal()
);
@@ -36,7 +36,7 @@ describe('ClearStack', function() {
queueMicrotask
};
const clearStack = jasmineUnderTest.getClearStack(global);
const clearStack = privateUnderTest.getClearStack(global);
for (let i = 0; i < 9; i++) {
clearStack(function() {});
@@ -104,7 +104,7 @@ describe('ClearStack', function() {
...makeGlobal(),
MessageChannel: fakeMessageChannel
};
const clearStack = jasmineUnderTest.getClearStack(global);
const clearStack = privateUnderTest.getClearStack(global);
let called = false;
clearStack(function() {
@@ -125,7 +125,7 @@ describe('ClearStack', function() {
return fakeChannel;
}
};
const clearStack = jasmineUnderTest.getClearStack(global);
const clearStack = privateUnderTest.getClearStack(global);
for (let i = 0; i < 9; i++) {
clearStack(function() {});
@@ -150,7 +150,7 @@ describe('ClearStack', function() {
setTimeout,
MessageChannel: fakeMessageChannel
};
const clearStack = jasmineUnderTest.getClearStack(global);
const clearStack = privateUnderTest.getClearStack(global);
const fn = jasmine.createSpy('second clearStack function');
clearStack(function() {
@@ -170,7 +170,7 @@ describe('ClearStack', function() {
fn();
}
};
const clearStack = jasmineUnderTest.getClearStack(global);
const clearStack = privateUnderTest.getClearStack(global);
let called = false;
clearStack(function() {
@@ -188,7 +188,7 @@ describe('ClearStack', function() {
queueMicrotask,
setTimeout
};
const clearStack = jasmineUnderTest.getClearStack(global);
const clearStack = privateUnderTest.getClearStack(global);
for (let i = 0; i < 9; i++) {
clearStack(function() {});
@@ -215,7 +215,7 @@ describe('ClearStack', function() {
fn();
}
};
const clearStack = jasmineUnderTest.getClearStack(global);
const clearStack = privateUnderTest.getClearStack(global);
let called = false;
clearStack(function() {
@@ -233,7 +233,7 @@ describe('ClearStack', function() {
queueMicrotask,
setTimeout
};
const clearStack = jasmineUnderTest.getClearStack(global);
const clearStack = privateUnderTest.getClearStack(global);
clearStack(function() {});
clearStack(function() {});