mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-06-28 07:10:27 -04:00
Add test for allAtOnce
This commit is contained in:
parent
b6cb198144
commit
62dd6c58c6
1 changed files with 18 additions and 0 deletions
|
@ -208,3 +208,21 @@ test('counter, incrCounter, clearCounter', t => {
|
||||||
|
|
||||||
t.end();
|
t.end();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('allAtOnce', t => {
|
||||||
|
const rt = new Runtime();
|
||||||
|
const c = new Control(rt);
|
||||||
|
|
||||||
|
// Test harness (mocks `util`)
|
||||||
|
let ran = false;
|
||||||
|
const util = {
|
||||||
|
startBranch: function () {
|
||||||
|
ran = true;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
// Execute test
|
||||||
|
c.allAtOnce({}, util);
|
||||||
|
t.true(ran);
|
||||||
|
t.end();
|
||||||
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue