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