Skip to content

Commit f15ccfa

Browse files
committed
fix: lint
1 parent f8c6e48 commit f15ccfa

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

packages/expect-utils/src/__tests__/utils.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,7 @@ describe('iterableEquality', () => {
593593
});
594594

595595
test('returns true when given a symbols keys within equal objects', () => {
596-
const KEY = Symbol()
596+
const KEY = Symbol();
597597

598598
const a = {
599599
[Symbol.iterator]: () => ({next: () => ({done: true})}),
@@ -608,7 +608,7 @@ describe('iterableEquality', () => {
608608
});
609609

610610
test('returns false when given a symbols keys within inequal objects', () => {
611-
const KEY = Symbol()
611+
const KEY = Symbol();
612612

613613
const a = {
614614
[Symbol.iterator]: () => ({next: () => ({done: true})}),

packages/expect-utils/src/utils.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,15 +321,13 @@ export const iterableEquality = (
321321
};
322322

323323
const entries = (obj: any) => {
324-
if(!isObject(obj)) return [];
324+
if (!isObject(obj)) return [];
325325

326-
return Object
327-
.getOwnPropertySymbols(obj)
326+
return Object.getOwnPropertySymbols(obj)
328327
.filter(key => key !== Symbol.iterator)
329328
.map(key => [key, obj[key]])
330-
331-
.concat(Object.entries(obj))
332-
}
329+
.concat(Object.entries(obj));
330+
};
333331

334332
const isObject = (a: any) => a !== null && typeof a === 'object';
335333

0 commit comments

Comments
 (0)