Skip to content

Commit

Permalink
Fix unsused variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H committed Sep 16, 2024
1 parent 4961acf commit 8687a8b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion GDJS/tests/tests/hot-reloader.js
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,10 @@ describe('gdjs.HotReloader._hotReloadRuntimeGame', () => {
const scene = runtimeGame.getSceneStack().getCurrentScene();
if (!scene) throw new Error("Couldn't set a current scene for testing.");

const instances = scene.getInstancesOf('MyObject');
const instance = scene.createObject('MyObject');
if (!instance) {
throw new Error("Couldn't create an object instance for testing.");
}
const variablesContainer = instance.getVariables();
// The variable values are changed by events.
variablesContainer.get('MyVariable1').setNumber(111);
Expand Down

0 comments on commit 8687a8b

Please sign in to comment.