mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-10 21:14:06 -04:00
Fix tests & a typo
This commit is contained in:
parent
0af3de9bf0
commit
c88a8fa55a
5 changed files with 7 additions and 7 deletions
test/unit
|
@ -20,7 +20,7 @@ test('default', t => {
|
|||
|
||||
// Create runtime instance & load SB2 into it
|
||||
const rt = new Runtime();
|
||||
sb2.deserialize(json, rt).then(targets => {
|
||||
sb2.deserialize(json, rt).then(({targets}) => {
|
||||
// Test
|
||||
t.type(file, 'string');
|
||||
t.type(json, 'object');
|
||||
|
@ -60,7 +60,7 @@ test('data scoping', t => {
|
|||
|
||||
// Create runtime instance & load SB2 into it
|
||||
const rt = new Runtime();
|
||||
sb2.deserialize(json, rt).then(targets => {
|
||||
sb2.deserialize(json, rt).then(({targets}) => {
|
||||
const globalVariableIds = Object.keys(targets[0].variables);
|
||||
const localVariableIds = Object.keys(targets[1].variables);
|
||||
t.equal(targets[0].variables[globalVariableIds[0]].name, 'foo');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue