mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 17:35:16 +00:00
13 lines
395 B
JavaScript
13 lines
395 B
JavaScript
|
"use strict";
|
||
|
|
||
|
module.exports = {
|
||
|
"__generic": function (t, a) { a.deep(t.call(this, this[1]), [1]); },
|
||
|
"": function (t, a) {
|
||
|
var x = {};
|
||
|
a.deep(t.call([1, 3, 5, 3, 5], 6), [], "No result");
|
||
|
a.deep(t.call([1, 3, 5, 1, 3, 5, 1], 1), [0, 3, 6], "Some results");
|
||
|
a.deep(t.call([], x), [], "Empty array");
|
||
|
a.deep(t.call([x, 3, {}, x, 3, 5, x], x), [0, 3, 6], "Search for object");
|
||
|
}
|
||
|
};
|