Update test/unit/engine_target.js

Co-Authored-By: paulkaplan <pkaplan@media.mit.edu>
This commit is contained in:
Karishma Chadha 2018-12-06 05:30:10 -05:00 committed by GitHub
parent d50504e339
commit 78e5f93544
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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