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

Version Path
immosquare-cleaner-0.1.62 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.61 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.60 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.59 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.58 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.57 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.56 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.55 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.54 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.53 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.52 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.51 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.50 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.49 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.48 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.47 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.46 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.45 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.44 node_modules/has-tostringtag/test/index.js
immosquare-cleaner-0.1.43 node_modules/has-tostringtag/test/index.js