mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-01-10 06:52:00 -05:00
Update test/unit/engine_target.js
Co-Authored-By: paulkaplan <pkaplan@media.mit.edu>
This commit is contained in:
parent
d50504e339
commit
78e5f93544
1 changed files with 1 additions and 1 deletions
|
@ -326,7 +326,7 @@ test('duplicateVariable creates a new variable with a new ID by default', t => {
|
|||
test('duplicateVariable creates new array reference for list variable.value', t => {
|
||||
const target = new Target();
|
||||
const arr = [1, 2, 3];
|
||||
target.createVariable('a var ID', arr, Variable.LIST_TYPE);
|
||||
target.createVariable('a var ID', 'arr', Variable.LIST_TYPE);
|
||||
const originalVariable = target.variables['a var ID'];
|
||||
const newVariable = target.duplicateVariable('a var ID');
|
||||
// Values are deeply equal but not the same object
|
||||
|
|
Loading…
Reference in a new issue