Sha256: f9e2321e880468a39cb79989dcdb0f3d0c43794f9b9ec4ce1c074be5548486c3

Contents?: true

Size: 628 Bytes

Versions: 46

Compression:

Stored size: 628 Bytes

Contents

"use strict";

module.exports = function (t, a) {
	a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 3 }), true, "Same");
	a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2, 3: 4 }), false,
		"Different property value");
	a(t({ 1: 1, 2: 2, 3: 3 }, { 1: 1, 2: 2 }), false,
		"Property only in source");
	a(t({ 1: 1, 2: 2 }, { 1: 1, 2: 2, 3: 4 }), false,
		"Property only in target");

	a(t("raz", "dwa"), false, "String: diff");
	a(t("raz", "raz"), true, "String: same");
	a(t("32", 32), false, "String & Number");

	a(t([1, "raz", true], [1, "raz", true]), true, "Array: same");
	a(t([1, "raz", undefined], [1, "raz"]), false, "Array: diff");
};

Version data entries

46 entries across 46 versions & 3 rubygems

Version Path
govuk_publishing_components-18.0.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.21.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.20.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.19.1 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.19.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.18.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.17.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.16.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.15.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.14.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.13.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.12.2 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.12.1 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.12.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.11.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.10.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.9.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.8.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.7.0 node_modules/es5-ext/test/object/is-copy.js
govuk_publishing_components-17.6.1 node_modules/es5-ext/test/object/is-copy.js