Sha256: 6b3bb9da73f48f64c4c1a10a5dc6e0bb2cf6642f5dc6842b6808b7e929eac6a1

Contents?: true

Size: 427 Bytes

Versions: 27

Compression:

Stored size: 427 Bytes

Contents

'use strict';

// eslint-disable-next-line consistent-return
module.exports = function runSymbolTests(t) {
	t.equal(typeof Symbol, 'function', 'global Symbol is a function');
	t.ok(Symbol.toStringTag, 'Symbol.toStringTag exists');

	if (typeof Symbol !== 'function' || !Symbol.toStringTag) { return false; }

	var obj = {};
	obj[Symbol.toStringTag] = 'test';

	t.equal(Object.prototype.toString.call(obj), '[object test]');
};

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
immosquare-cleaner-0.1.32 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.31 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.30 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.29 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.28 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.27 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.26 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.25 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.24 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.23 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.22 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.21 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.20 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.19 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.18 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.17 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.16 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.14 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.13 node_modules/has-tostringtag/test/tests.js
immosquare-cleaner-0.1.12 node_modules/has-tostringtag/test/tests.js