We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0881b25 commit 6b148abCopy full SHA for 6b148ab
test.js
@@ -1,13 +1,16 @@
1
+'use strict';
2
+/* eslint-disable array-callback-return, guard-for-in */
3
+
4
import test from 'ava';
5
import m from '.';
6
-const objectA = { 'a': 'b', 'c': 'd' };
-const objectB = { 'c': 'd' };
7
+const objectA = {a: 'b', c: 'd'};
8
+const objectB = {c: 'd'};
9
10
test('detect the delta length', t => {
11
t.is(m(objectA, objectB).length, 1);
12
});
13
14
test('detect the correct delta object', t => {
- t.deepEqual(m.json(objectA, objectB), { 'a': 'b' });
15
+ t.deepEqual(m.json(objectA, objectB), {a: 'b'});
16
0 commit comments