Skip to content

Commit

Permalink
fix: missed goto deprecation
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Dec 5, 2024
1 parent 8faedcb commit 86ebfa9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spec/DirectorSpec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,14 +233,14 @@ describe('A Director', () => {
});
sut.configureStart('scene1');
sut.onInitialize();
await sut.goto('scene2');
await sut.goToScene('scene2');
expect(sut.currentScene).toBe(scene2);
sut.remove('scene1');

const newScene = new ex.Scene();
sut.add('scene1', newScene);

await sut.goto('scene1');
await sut.goToScene('scene1');
expect(sut.currentScene).toBe(newScene);
engine.dispose();
});
Expand All @@ -263,12 +263,12 @@ describe('A Director', () => {
await engine.load(sut.mainLoader);
await (engine as any)._overrideInitialize(engine);

await sut.goto('scene2');
await sut.goToScene('scene2');

expect(sut.currentScene).toBe(scene2);
expect(sut.currentSceneName).toBe('scene2');

await sut.goto('scene4');
await sut.goToScene('scene4');
expect(sut.currentSceneName).toBe('scene4');
expect(sut.currentScene).toBeInstanceOf(MyScene);
engine.dispose();
Expand Down

0 comments on commit 86ebfa9

Please sign in to comment.