Skip to content

Commit

Permalink
[tests] remove Object.getOwnPropertySymbols hard dependency from so…
Browse files Browse the repository at this point in the history
…me native tests
  • Loading branch information
zloirock committed Jan 30, 2016
1 parent c881969 commit 32aa7c2
Show file tree
Hide file tree
Showing 9 changed files with 36 additions and 36 deletions.
26 changes: 13 additions & 13 deletions tests/es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions tests/tests.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion tests/tests/es6.map.ls
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test 'Map' (assert)->
assert.arrayEqual [key for key of o], []
assert.arrayEqual Object.keys(o), []
assert.arrayEqual Object.getOwnPropertyNames(o), []
assert.arrayEqual Object.getOwnPropertySymbols(o), []
Object?getOwnPropertySymbols and assert.arrayEqual Object.getOwnPropertySymbols(o), []
Reflect?ownKeys and assert.arrayEqual Reflect.ownKeys(o), []
if nativeSubclass
C = nativeSubclass Map
Expand Down
4 changes: 2 additions & 2 deletions tests/tests/es6.object.freeze.ls
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module \ES6

test 'Object.freeze' (assert)!->
{freeze, isFrozen, keys, getOwnPropertyNames, getOwnPropertySymbols} = Object
{freeze, isFrozen, keys, getOwnPropertyNames} = Object
assert.isFunction freeze
assert.arity freeze, 1
assert.name freeze, \freeze
Expand All @@ -15,5 +15,5 @@ test 'Object.freeze' (assert)!->
assert.arrayEqual [key for key of freeze {}], []
assert.arrayEqual keys(freeze {}), []
assert.arrayEqual getOwnPropertyNames(freeze {}), []
assert.arrayEqual getOwnPropertySymbols(freeze {}), []
Object?getOwnPropertySymbols and assert.arrayEqual Object.getOwnPropertySymbols(freeze {}), []
Reflect?ownKeys and assert.arrayEqual Reflect.ownKeys(freeze {}), []
4 changes: 2 additions & 2 deletions tests/tests/es6.object.prevent-extensions.ls
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module \ES6

test 'Object.preventExtensions' (assert)!->
{preventExtensions, isExtensible, keys, getOwnPropertyNames, getOwnPropertySymbols} = Object
{preventExtensions, isExtensible, keys, getOwnPropertyNames} = Object
assert.isFunction preventExtensions
assert.arity preventExtensions, 1
assert.name preventExtensions, \preventExtensions
Expand All @@ -15,5 +15,5 @@ test 'Object.preventExtensions' (assert)!->
assert.arrayEqual [key for key of preventExtensions {}], []
assert.arrayEqual keys(preventExtensions {}), []
assert.arrayEqual getOwnPropertyNames(preventExtensions {}), []
assert.arrayEqual getOwnPropertySymbols(preventExtensions {}), []
Object?getOwnPropertySymbols and assert.arrayEqual Object.getOwnPropertySymbols(preventExtensions {}), []
Reflect?ownKeys and assert.arrayEqual Reflect.ownKeys(preventExtensions {}), []
4 changes: 2 additions & 2 deletions tests/tests/es6.object.seal.ls
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
module \ES6

test 'Object.seal' (assert)!->
{seal, isSealed, keys, getOwnPropertyNames, getOwnPropertySymbols} = Object
{seal, isSealed, keys, getOwnPropertyNames} = Object
assert.isFunction seal
assert.arity seal, 1
assert.name seal, \seal
Expand All @@ -15,5 +15,5 @@ test 'Object.seal' (assert)!->
assert.arrayEqual [key for key of seal {}], []
assert.arrayEqual keys(seal {}), []
assert.arrayEqual getOwnPropertyNames(seal {}), []
assert.arrayEqual getOwnPropertySymbols(seal {}), []
Object?getOwnPropertySymbols and assert.arrayEqual Object.getOwnPropertySymbols(seal {}), []
Reflect?ownKeys and assert.arrayEqual Reflect.ownKeys(seal {}), []
2 changes: 1 addition & 1 deletion tests/tests/es6.set.ls
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ test 'Set' (assert)->
assert.arrayEqual [key for key of o], []
assert.arrayEqual Object.keys(o), []
assert.arrayEqual Object.getOwnPropertyNames(o), []
assert.arrayEqual Object.getOwnPropertySymbols(o), []
Object?getOwnPropertySymbols and assert.arrayEqual Object.getOwnPropertySymbols(o), []
Reflect?ownKeys and assert.arrayEqual Reflect.ownKeys(o), []
if nativeSubclass
C = nativeSubclass Set
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/es6.weak-map.ls
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ test 'WeakMap' (assert)!->
assert.arrayEqual [key for key of o], []
assert.arrayEqual Object.keys(o), []
assert.arrayEqual Object.getOwnPropertyNames(o), []
assert.arrayEqual Object.getOwnPropertySymbols(o), []
Object?getOwnPropertySymbols and assert.arrayEqual Object.getOwnPropertySymbols(o), []
Reflect?ownKeys and assert.arrayEqual Reflect.ownKeys(o), []
if nativeSubclass
C = nativeSubclass WeakMap
Expand Down
2 changes: 1 addition & 1 deletion tests/tests/es6.weak-set.ls
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test 'WeakSet' (assert)!->
assert.arrayEqual [key for key of o], []
assert.arrayEqual Object.keys(o), []
assert.arrayEqual Object.getOwnPropertyNames(o), []
assert.arrayEqual Object.getOwnPropertySymbols(o), []
Object?getOwnPropertySymbols and assert.arrayEqual Object.getOwnPropertySymbols(o), []
Reflect?ownKeys and assert.arrayEqual Reflect.ownKeys(o), []
if nativeSubclass
C = nativeSubclass WeakSet
Expand Down

0 comments on commit 32aa7c2

Please sign in to comment.