mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-02 22:59:31 +08:00
21 lines
679 B
Text
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();
|
|
});
|