mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-11 21:43:58 -04:00
Fix cloud variable limit
This commit is contained in:
parent
808cb2cd60
commit
85843e5d6f
6 changed files with 11 additions and 11 deletions
test/integration
|
@ -54,9 +54,9 @@ test('importing an sb3 project with cloud variables at the limit for a project',
|
|||
const stage = vm.runtime.targets[0];
|
||||
const stageVars = Object.values(stage.variables);
|
||||
|
||||
t.equal(stageVars.length, 8);
|
||||
// All of the 8 stage variables should be cloud variables
|
||||
t.equal(stageVars.filter(v => v.isCloud).length, 8);
|
||||
t.equal(stageVars.length, 10);
|
||||
// All of the 10 stage variables should be cloud variables
|
||||
t.equal(stageVars.filter(v => v.isCloud).length, 10);
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
@ -81,7 +81,7 @@ test('importing an sb3 project with cloud variables exceeding the limit for a pr
|
|||
|
||||
t.equal(stageVars.length, 15);
|
||||
// Only 8 of the variables should have the isCloud flag set to true
|
||||
t.equal(stageVars.filter(v => v.isCloud).length, 8);
|
||||
t.equal(stageVars.filter(v => v.isCloud).length, 10);
|
||||
|
||||
t.end();
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue