Test cleanup and fixes [a-b]

This commit is contained in:
Angelos Chalaris
2018-06-18 15:54:48 +03:00
parent a78f5db260
commit 026c65a5e6
151 changed files with 753 additions and 373 deletions

View File

@ -7,7 +7,11 @@ const lowercaseKeys = require('./lowercaseKeys.js');
});
const myObj = { Name: 'Adam', sUrnAME: 'Smith' };
const myObjLower = lowercaseKeys(myObj);
t.deepEqual(myObjLower, {name: 'Adam', surname: 'Smith'}, 'Lowercases object keys');
t.deepEqual(myObj, { Name: 'Adam', sUrnAME: 'Smith' }, 'Does not mutate original object');
test('Lowercases object keys', () => {
expect(myObjLower, {name: 'Adam', surname: 'Smith'}).toEqual()
});
test('Does not mutate original object', () => {
expect(myObj, { Name: 'Adam', sUrnAME: 'Smith' }).toEqual()
});