Sha256: 870b05394a7ac2daa373f50db4d6e0782587472f7442d15cdca42a2d7d2efbeb
Contents?: true
Size: 679 Bytes
Versions: 52
Compression:
Stored size: 679 Bytes
Contents
'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(); });
Version data entries
52 entries across 52 versions & 2 rubygems