mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-01 21:52:19 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
40
web/node_modules/ext/test/string_/includes/_tests.js
generated
vendored
Normal file
40
web/node_modules/ext/test/string_/includes/_tests.js
generated
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
"use strict";
|
||||
|
||||
var assert = require("chai").assert;
|
||||
|
||||
module.exports = function (includes) {
|
||||
it("Should return true when context contains search string", function () {
|
||||
assert.equal(includes.call("razdwatrzy", "dwa"), true);
|
||||
});
|
||||
it("Should return true when context starts with search string", function () {
|
||||
assert.equal(includes.call("razdwa", "raz"), true);
|
||||
});
|
||||
it("Should return true when context ends with search string", function () {
|
||||
assert.equal(includes.call("razdwa", "dwa"), true);
|
||||
});
|
||||
it("Should return false when string doesn't contain search string", function () {
|
||||
assert.equal(includes.call("razdwa", "trzy"), false);
|
||||
});
|
||||
it("Should return false when context is empty and search string is not", function () {
|
||||
assert.equal(includes.call("", "a"), false);
|
||||
});
|
||||
it("Should return false when search string is longer than context", function () {
|
||||
assert.equal(includes.call("raz", "razdwa"), false);
|
||||
});
|
||||
it("Should return true when search string is same as context ", function () {
|
||||
assert.equal(includes.call("raz", "raz"), true);
|
||||
});
|
||||
it("Should return true when context starts with search string", function () {
|
||||
assert.equal(includes.call("razdwa", "raz"), true);
|
||||
});
|
||||
it("Should return true when search string is empty", function () {
|
||||
assert.equal(includes.call("raz", ""), true);
|
||||
});
|
||||
it("Should return true when both context and search string are empty", function () {
|
||||
assert.equal(includes.call("", ""), true);
|
||||
});
|
||||
it("Should support position argument", function () {
|
||||
assert.equal(includes.call("razdwa", "raz", 1), false);
|
||||
assert.equal(includes.call("razdwa", "dwa", 1), true);
|
||||
});
|
||||
};
|
5
web/node_modules/ext/test/string_/includes/implementation.js
generated
vendored
Normal file
5
web/node_modules/ext/test/string_/includes/implementation.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
describe("string_/includes/implementation", function () {
|
||||
require("./_tests")(require("../../../string_/includes/implementation"));
|
||||
});
|
5
web/node_modules/ext/test/string_/includes/index.js
generated
vendored
Normal file
5
web/node_modules/ext/test/string_/includes/index.js
generated
vendored
Normal file
|
@ -0,0 +1,5 @@
|
|||
"use strict";
|
||||
|
||||
describe("string_/includes/implementation", function () {
|
||||
require("./_tests")(require("../../../string_/includes"));
|
||||
});
|
8
web/node_modules/ext/test/string_/includes/is-implemented.js
generated
vendored
Normal file
8
web/node_modules/ext/test/string_/includes/is-implemented.js
generated
vendored
Normal file
|
@ -0,0 +1,8 @@
|
|||
"use strict";
|
||||
|
||||
var assert = require("chai").assert
|
||||
, isImplemented = require("../../../string_/includes/is-implemented");
|
||||
|
||||
describe("string_/includes/is-implemented", function () {
|
||||
it("Should return boolean", function () { assert.equal(typeof isImplemented(), "boolean"); });
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue