(runtimeGame, expectedSceneName)
| 2383 | * @returns {{currentScene: gdjs.RuntimeScene}} |
| 2384 | */ |
| 2385 | const checkCurrentSceneIs = (runtimeGame, expectedSceneName) => { |
| 2386 | const currentScene = runtimeGame.getSceneStack().getCurrentScene(); |
| 2387 | if (!currentScene) throw new Error('No current scene found.'); |
| 2388 | expect(currentScene.getName()).to.be(expectedSceneName); |
| 2389 | |
| 2390 | return { currentScene }; |
| 2391 | }; |
| 2392 | |
| 2393 | it('synchronizes scenes from the host to other players', async () => { |
| 2394 | const { switchToPeer, initiateGameWithPlayers } = |
no test coverage detected