Skip to content

Commit a43fc06

Browse files
committed
Fix preserve typo
1 parent 3598651 commit a43fc06

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed
File renamed without changes.

src/preseveArray.test.js renamed to src/preserveArray.test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import preseveArray from './preseveArray';
1+
import preserveArray from './preserveArray';
22

3-
describe('.preseveArray', () => {
3+
describe('.preserveArray', () => {
44
test('returns diff with nested objects converted back to arrays when property is deleted', () => {
55
const left = { a: [{ b: ['#', '#', '#', { hello: '' }] }, '#', { c: '', d: ['#', ''] }, '#'] };
66
const right = { a: [{ b: ['#', '#', '#', { hello: 'world' }] }, '#', { c: 'hello', d: ['#', 'bob'] }] };
@@ -48,7 +48,7 @@ describe('.preseveArray', () => {
4848
delete expected.a[1];
4949
delete expected.a[2].d[0];
5050

51-
expect(preseveArray(diff, left, right)).toEqual(expected);
51+
expect(preserveArray(diff, left, right)).toEqual(expected);
5252
});
5353

5454
test('returns diff with nested objects converted back to arrays when new property is added', () => {
@@ -98,6 +98,6 @@ describe('.preseveArray', () => {
9898
delete expected.a[1];
9999
delete expected.a[2].d[0];
100100

101-
expect(preseveArray(diff, left, right)).toEqual(expected);
101+
expect(preserveArray(diff, left, right)).toEqual(expected);
102102
});
103103
});

0 commit comments

Comments
 (0)