Final fixes, all tests running

This commit is contained in:
Angelos Chalaris
2018-06-18 20:41:57 +03:00
parent 977adb1198
commit e9594e6355
49 changed files with 2189 additions and 1198 deletions

View File

@@ -6,7 +6,9 @@ test('shallowClone is a Function', () => {
});
const a = { foo: 'bar', obj: { a: 1, b: 2 } };
const b = shallowClone(a);
t.notEqual(a, b, 'Shallow cloning works');
test('Shallow cloning works', () => {
expect(a).not.toBe(b);
});
test('Does not clone deeply', () => {
expect(a.obj).toBe(b.obj);
});