Skip to content

Commit 455b6d9

Browse files
committed
style: styles code according to linting
1 parent 4da2563 commit 455b6d9

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

test/tests.js

+8-6
Original file line numberDiff line numberDiff line change
@@ -755,26 +755,28 @@
755755
});
756756

757757
});
758-
758+
759759
describe('Diff-ing symbol-based keys should work', function () {
760760
const lhs = {
761-
[Symbol.iterator]: "Iterator"
761+
[Symbol.iterator]: 'Iterator', // eslint-disable-line no-undef
762+
foo: 'bar'
762763
};
763764
const rhs = {
764-
foo: "bar"
765+
foo: 'baz'
765766
};
766-
767+
767768
const res = deep.diff(lhs, rhs);
768769
expect(res).to.be.ok();
769770
expect(res).to.be.an('array');
770771
expect(res).to.have.length(2);
771772

772773
let changed = 0, deleted = 0;
773774
for (const difference of res) {
774-
if (difference.kind == 'D')
775+
if (difference.kind === 'D') {
775776
deleted += 1;
776-
else if (difference.kind == 'E')
777+
} else if (difference.kind === 'E') {
777778
changed += 1;
779+
}
778780
}
779781

780782
expect(changed).to.be(1);

0 commit comments

Comments
 (0)