Sha256: 906d0fb095a5be86476e5c47a0dda180623dd04e2554f34fa26ab5b00ca0353a

Contents?: true

Size: 591 Bytes

Versions: 53

Compression:

Stored size: 591 Bytes

Contents

'use strict';

var MapPoly = require('../polyfill');

module.exports = function (t, a) {
	var map;
	a.throws(function () { t(undefined); }, TypeError, "Undefined");
	a.throws(function () { t(null); }, TypeError, "Null");
	a.throws(function () { t(true); }, TypeError, "Primitive");
	a.throws(function () { t('raz'); }, TypeError, "String");
	a.throws(function () { t({}); }, TypeError, "Object");
	a.throws(function () { t([]); }, TypeError, "Array");
	if (typeof Map !== 'undefined') {
		map = new Map();
		a(t(map), map, "Native");
	}
	map = new MapPoly();
	a(t(map), map, "Polyfill");
};

Version data entries

53 entries across 53 versions & 7 rubygems

Version Path
govuk_publishing_components-18.0.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.21.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.20.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.19.1 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.19.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.18.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.17.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.16.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.15.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.14.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.13.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.12.2 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.12.1 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.12.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.11.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.10.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.9.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.8.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.7.0 node_modules/es6-map/test/valid-map.js
govuk_publishing_components-17.6.1 node_modules/es6-map/test/valid-map.js