source: imaps-frontend/node_modules/has-symbols/test/shams/get-own-property-symbols.js@ d565449

main
Last change on this file since d565449 was d565449, checked in by stefan toskovski <stefantoska84@…>, 4 weeks ago

Update repo after prototype presentation

  • Property mode set to 100644
File size: 686 bytes
Line 
1'use strict';
2
3var test = require('tape');
4
5if (typeof Symbol === 'function' && typeof Symbol() === 'symbol') {
6 test('has native Symbol support', function (t) {
7 t.equal(typeof Symbol, 'function');
8 t.equal(typeof Symbol(), 'symbol');
9 t.end();
10 });
11 return;
12}
13
14var hasSymbols = require('../../shams');
15
16test('polyfilled Symbols', function (t) {
17 /* eslint-disable global-require */
18 t.equal(hasSymbols(), false, 'hasSymbols is false before polyfilling');
19
20 require('get-own-property-symbols');
21
22 require('../tests')(t);
23
24 var hasSymbolsAfter = hasSymbols();
25 t.equal(hasSymbolsAfter, true, 'hasSymbols is true after polyfilling');
26 /* eslint-enable global-require */
27 t.end();
28});
Note: See TracBrowser for help on using the repository browser.