Urara-Blog/node_modules/.pnpm-store/v3/files/cd/8aae97d0ec0141bd522573190d7be71e4960c3315ba5c86fddd863b87412aca81db940a5786dc1d2c5a0940a3fcca7b37ee5134fbc730f9c6849acb73215c4
2022-08-14 01:14:53 +08:00

22 lines
654 B
Text

'use strict';
var test = require('tape');
var hasSymbols = require('../');
var runSymbolTests = require('./tests');
test('interface', function (t) {
t.equal(typeof hasSymbols, 'function', 'is a function');
t.equal(typeof hasSymbols(), 'boolean', 'returns a boolean');
t.end();
});
test('Symbols are supported', { skip: !hasSymbols() }, function (t) {
runSymbolTests(t);
t.end();
});
test('Symbols are not supported', { skip: hasSymbols() }, function (t) {
t.equal(typeof Symbol, 'undefined', 'global Symbol is undefined');
t.equal(typeof Object.getOwnPropertySymbols, 'undefined', 'Object.getOwnPropertySymbols does not exist');
t.end();
});