diff options
author | grant-kun <[email protected]> | 2022-09-26 11:31:02 -0500 |
---|---|---|
committer | GitHub <[email protected]> | 2022-09-26 11:31:02 -0500 |
commit | 4b237cd7f3d9ebffdfc60d987c4df3c2595c3b7c (patch) | |
tree | 1176d127cdedb18918ef8a3d728737c9937af486 /node_modules/has-symbols/test/shams/core-js.js | |
parent | ef9d69cee87c45fc4507780a891591cc31ec5481 (diff) |
Delete node_modules directory
Diffstat (limited to 'node_modules/has-symbols/test/shams/core-js.js')
-rw-r--r-- | node_modules/has-symbols/test/shams/core-js.js | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/node_modules/has-symbols/test/shams/core-js.js b/node_modules/has-symbols/test/shams/core-js.js deleted file mode 100644 index df5365c..0000000 --- a/node_modules/has-symbols/test/shams/core-js.js +++ /dev/null @@ -1,28 +0,0 @@ -'use strict'; - -var test = require('tape'); - -if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') { - test('has native Symbol support', function (t) { - t.equal(typeof Symbol, 'function'); - t.equal(typeof Symbol(), 'symbol'); - t.end(); - }); - return; -} - -var hasSymbols = require('../../shams'); - -test('polyfilled Symbols', function (t) { - /* eslint-disable global-require */ - t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling'); - require('core-js/fn/symbol'); - require('core-js/fn/symbol/to-string-tag'); - - require('../tests')(t); - - var hasSymbolsAfter = hasSymbols(); - t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling'); - /* eslint-enable global-require */ - t.end(); -}); |