Skip to content

Commit

Permalink
Replace use of deprecated vm.stop() in branch tests
Browse files Browse the repository at this point in the history
  • Loading branch information
GarboMuffin committed Jan 14, 2024
1 parent ce0b7d7 commit c857903
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/tw_conditional_and_loop.js
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ for (const Extension of [TestExtensionUsingReturn, TestExtensionUsingStartBranch
if (text === 'OK!') {
okayCount++;
} else if (text === 'end') {
vm.stop();
vm.quit();
t.equal(okayCount, 5);
t.end();
} else {
Expand All @@ -184,7 +184,7 @@ for (const Extension of [TestExtensionUsingReturn, TestExtensionUsingStartBranch

vm.loadProject(fs.readFileSync(path.join(__dirname, '../fixtures/tw-loop.sb3'))).then(() => {
vm.runtime.on('SAY', (target, type, text) => {
vm.stop();
vm.quit();
t.equal(text, 'a 3 b 12 c 48 frames 64');
t.end();
});
Expand Down

0 comments on commit c857903

Please sign in to comment.