Test files linted
This commit is contained in:
@ -5,11 +5,14 @@ test('findKey is a Function', () => {
|
||||
expect(findKey).toBeInstanceOf(Function);
|
||||
});
|
||||
test('Returns the appropriate key', () => {
|
||||
expect(findKey(
|
||||
{
|
||||
barney: { age: 36, active: true },
|
||||
fred: { age: 40, active: false },
|
||||
pebbles: { age: 1, active: true }
|
||||
},
|
||||
o => o['active'])).toBe('barney');
|
||||
expect(
|
||||
findKey(
|
||||
{
|
||||
barney: { age: 36, active: true },
|
||||
fred: { age: 40, active: false },
|
||||
pebbles: { age: 1, active: true }
|
||||
},
|
||||
o => o['active']
|
||||
)
|
||||
).toBe('barney');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user