Merge pull request from mzgoddard/stop-other-sounds

Stop other sounds
This commit is contained in:
Michael "Z" Goddard 2018-10-23 15:11:08 -04:00 committed by GitHub
commit 5e5655c916
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 53 additions and 7 deletions

View file

@ -67,7 +67,7 @@ test('ask and stop all dismisses question', t => {
test('ask and stop other scripts dismisses if it is the last question', t => {
const rt = new Runtime();
const s = new Sensing(rt);
const util = {target: {visible: false}, thread: {}};
const util = {target: {visible: false, sprite: {}}, thread: {}};
const expectedQuestion = 'a question';
@ -94,8 +94,8 @@ test('ask and stop other scripts dismisses if it is the last question', t => {
test('ask and stop other scripts asks next question', t => {
const rt = new Runtime();
const s = new Sensing(rt);
const util = {target: {visible: false}, thread: {}};
const util2 = {target: {visible: false}, thread: {}};
const util = {target: {visible: false, sprite: {}}, thread: {}};
const util2 = {target: {visible: false, sprite: {}}, thread: {}};
const expectedQuestion = 'a question';
const nextQuestion = 'a followup';