Test files linted
This commit is contained in:
@ -5,6 +5,9 @@ test('partition is a Function', () => {
|
||||
expect(partition).toBeInstanceOf(Function);
|
||||
});
|
||||
const users = [{ user: 'barney', age: 36, active: false }, { user: 'fred', age: 40, active: true }];
|
||||
test('Groups the elements into two arrays, depending on the provided function\'s truthiness for each element.', () => {
|
||||
expect(partition(users, o => o.active)).toEqual([[{ 'user': 'fred', 'age': 40, 'active': true }],[{ 'user': 'barney', 'age': 36, 'active': false }]]);
|
||||
test("Groups the elements into two arrays, depending on the provided function's truthiness for each element.", () => {
|
||||
expect(partition(users, o => o.active)).toEqual([
|
||||
[{ user: 'fred', age: 40, active: true }],
|
||||
[{ user: 'barney', age: 36, active: false }]
|
||||
]);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user