Sha256: c60efe14320b6dc8fdc2d759d9c2473c492943d68d55bb5136c0ce3c2becef45

Contents?: true

Size: 516 Bytes

Versions: 47

Compression:

Stored size: 516 Bytes

Contents

"use strict";

module.exports = function (t, a) {
	a(t.call("raz", ""), true, "Empty");
	a(t.call("", ""), true, "Both Empty");
	a(t.call("raz", "raz"), true, "Same");
	a(t.call("razdwa", "raz"), true, "Starts with");
	a(t.call("razdwa", "dwa"), true, "Ends with");
	a(t.call("razdwa", "zdw"), true, "In middle");
	a(t.call("", "raz"), false, "Something in empty");
	a(t.call("az", "raz"), false, "Longer");
	a(t.call("azasdfasdf", "azff"), false, "Not found");
	a(t.call("razdwa", "raz", 1), false, "Position");
};

Version data entries

47 entries across 47 versions & 3 rubygems

Version Path
govuk_publishing_components-16.20.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-16.19.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-16.18.0 node_modules/es5-ext/test/string/#/contains/shim.js
govuk_publishing_components-16.17.0 node_modules/es5-ext/test/string/#/contains/shim.js
optimacms-0.4.3 spec/dummy/node_modules/es5-ext/test/string/#/contains/shim.js
optimacms-0.4.2 spec/dummy/node_modules/es5-ext/test/string/#/contains/shim.js
cortex-0.1.3 spec/dummy/node_modules/es5-ext/test/string/#/contains/shim.js