Check for and silence suite reentry warnings in Jasmine's own tests

This commit is contained in:
Steve Gravrock
2025-08-15 06:58:08 -07:00
parent 2299c85751
commit 98d5284c19
2 changed files with 7 additions and 0 deletions

View File

@@ -787,6 +787,7 @@ describe('TreeProcessor', function() {
runQueue
});
spyOn(jasmineUnderTest.getEnv(), 'deprecated');
processor.execute();
const queueableFns = runQueue.calls.mostRecent().args[0].queueableFns;
expect(queueableFns.length).toBe(5);
@@ -831,6 +832,7 @@ describe('TreeProcessor', function() {
runQueue
});
spyOn(jasmineUnderTest.getEnv(), 'deprecated');
processor.execute();
const queueableFns = runQueue.calls.mostRecent().args[0].queueableFns;
expect(queueableFns.length).toBe(5);