Urara-Blog/node_modules/.pnpm-store/v3/files/86/50f32bbe3db6bb29bfc4614aa21e66d7a43b1508623b2e36e53b5a317d4ac2cc29737127198a9dc38349872063cea8a4022933d6d6359a66da10df636f2910
2022-08-14 01:14:53 +08:00

21 lines
679 B
Text

'use strict';
var test = require('tape');
var hasSymbolToStringTag = require('../');
var runSymbolTests = require('./tests');
test('interface', function (t) {
t.equal(typeof hasSymbolToStringTag, 'function', 'is a function');
t.equal(typeof hasSymbolToStringTag(), 'boolean', 'returns a boolean');
t.end();
});
test('Symbol.toStringTag exists', { skip: !hasSymbolToStringTag() }, function (t) {
runSymbolTests(t);
t.end();
});
test('Symbol.toStringTag does not exist', { skip: hasSymbolToStringTag() }, function (t) {
t.equal(typeof Symbol === 'undefined' ? 'undefined' : typeof Symbol.toStringTag, 'undefined', 'global Symbol.toStringTag is undefined');
t.end();
});