Skip to content

Commit

Permalink
Maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
Xotic750 committed Jan 31, 2020
1 parent 976be19 commit 537bf2d
Show file tree
Hide file tree
Showing 7 changed files with 5,990 additions and 2,324 deletions.
14 changes: 11 additions & 3 deletions __tests__/find-last-index-x.test.js
Expand Up @@ -121,7 +121,11 @@ describe('findLastIndex', function() {
return item === undefined && idx === 0;
});
expect(foundIndex).toBe(0);
expect(seen).toStrictEqual([[2, 1], [1, undefined], [0, undefined]]);
expect(seen).toStrictEqual([
[2, 1],
[1, undefined],
[0, undefined],
]);
});

it('should work with a sparse array-like object', function() {
Expand All @@ -138,7 +142,11 @@ describe('findLastIndex', function() {
return false;
});
expect(foundIndex).toBe(-1);
expect(seen).toStrictEqual([[2, undefined], [1, undefined], [0, 1]]);
expect(seen).toStrictEqual([
[2, undefined],
[1, undefined],
[0, 1],
]);
});

it('should work with arguments', function() {
Expand All @@ -157,7 +165,7 @@ describe('findLastIndex', function() {
const callback = jest.fn();
const string = '1';
findLastIndex(string, callback);
expect(callback).toHaveBeenCalledWith('1', 0, string);
expect(callback).toHaveBeenCalledWith('1', 0, Object(string));
});

itHasDoc('should work wih DOM elements', function() {
Expand Down
2 changes: 1 addition & 1 deletion dist/find-last-index-x.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/find-last-index-x.min.js

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions dist/find-last-index-x.min.js.LICENSE.txt
@@ -0,0 +1,13 @@
/*!
{
"author": "Graham Fairweather",
"copywrite": "Copyright (c) 2015-2017",
"date": "2020-01-31T10:51:26.448Z",
"describe": "",
"description": "Search an array from the end and return the matched index.",
"file": "find-last-index-x.min.js",
"hash": "88f2a648575f1f356489",
"license": "MIT",
"version": "3.1.2"
}
*/
2 changes: 1 addition & 1 deletion dist/find-last-index-x.min.js.map

Large diffs are not rendered by default.

0 comments on commit 537bf2d

Please sign in to comment.