Skip to content

Commit 59cfa1a

Browse files
committed
Fix lint
1 parent e5c254f commit 59cfa1a

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

e2e/snapshot/__tests__/snapshot.test_copy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('snapshot', () => {
1414
b: '2',
1515
c: 'three`',
1616
};
17-
expect(test).not.toBe(undefined);
17+
expect(test).toBeDefined();
1818
test.d = '4';
1919
expect(test).toMatchSnapshot();
2020
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
it('works with inline snapshots', () => {
22
expect({a: 1}).toMatchInlineSnapshot();
3-
});
3+
});
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
test('handles property matchers with hint', () => {
2-
expect({createdAt: new Date()}).toMatchSnapshot({createdAt: expect.any(Date)}, 'descriptive hint');
3-
});
2+
expect({createdAt: new Date()}).toMatchSnapshot(
3+
{createdAt: expect.any(Date)},
4+
'descriptive hint',
5+
);
6+
});

0 commit comments

Comments
 (0)