mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2025-07-09 04:24:04 -04:00
style: fix hasOwnProperty lint complaints
This commit is contained in:
parent
b1cc55e680
commit
8dbcc1fc8f
29 changed files with 207 additions and 180 deletions
test/unit
|
@ -402,10 +402,10 @@ test('duplicateVariables duplicates all variables', t => {
|
|||
|
||||
// Should be able to find original var IDs in both this target's variables and
|
||||
// the duplicate variables since a blocks container was not specified.
|
||||
t.equal(target.variables.hasOwnProperty('var ID 1'), true);
|
||||
t.equal(target.variables.hasOwnProperty('var ID 2'), true);
|
||||
t.equal(duplicateVariables.hasOwnProperty('var ID 1'), true);
|
||||
t.equal(duplicateVariables.hasOwnProperty('var ID 1'), true);
|
||||
t.equal(Object.prototype.hasOwnProperty.call(target.variables, 'var ID 1'), true);
|
||||
t.equal(Object.prototype.hasOwnProperty.call(target.variables, 'var ID 2'), true);
|
||||
t.equal(Object.prototype.hasOwnProperty.call(duplicateVariables, 'var ID 1'), true);
|
||||
t.equal(Object.prototype.hasOwnProperty.call(duplicateVariables, 'var ID 1'), true);
|
||||
|
||||
// Values of the duplicate varaiables should match the value of the original values at the time of duplication
|
||||
t.equal(target.variables['var ID 1'].value, duplicateVariables['var ID 1'].value);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue