Test files linted

This commit is contained in:
Angelos Chalaris
2018-08-03 10:39:26 +03:00
parent 5ef1fab5fd
commit cc7b76d0b3
153 changed files with 754 additions and 463 deletions

View File

@ -6,9 +6,11 @@ test('matchesWith is a Function', () => {
});
const isGreeting = val => /^h(?:i|ello)$/.test(val);
test('Returns true for two objects with similar values, based on the provided function', () => {
expect(matchesWith(
{ greeting: 'hello' },
{ greeting: 'hi' },
(oV, sV) => isGreeting(oV) && isGreeting(sV)
)).toBeTruthy();
expect(
matchesWith(
{ greeting: 'hello' },
{ greeting: 'hi' },
(oV, sV) => isGreeting(oV) && isGreeting(sV)
)
).toBeTruthy();
});