Skip to content

Commit 0c30a19

Browse files
committed
test: expect container for snapshot tests
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent e513fbe commit 0c30a19

File tree

88 files changed

+11405
-31927
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+11405
-31927
lines changed

src/renderer/components/AllRead.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ describe('renderer/components/AllRead.tsx', () => {
3030
});
3131
});
3232

33-
expect(tree).toMatchSnapshot();
33+
expect(tree.container).toMatchSnapshot();
3434
});
3535

3636
it('should render itself & its children - with filters', async () => {
@@ -45,6 +45,6 @@ describe('renderer/components/AllRead.tsx', () => {
4545
});
4646
});
4747

48-
expect(tree).toMatchSnapshot();
48+
expect(tree.container).toMatchSnapshot();
4949
});
5050
});

src/renderer/components/Oops.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ describe('renderer/components/Oops.tsx', () => {
2525
tree = renderWithAppContext(<Oops error={mockError} />);
2626
});
2727

28-
expect(tree).toMatchSnapshot();
28+
expect(tree.container).toMatchSnapshot();
2929
});
3030

3131
it('should render itself & its children - fallback to unknown error', async () => {
@@ -35,6 +35,6 @@ describe('renderer/components/Oops.tsx', () => {
3535
tree = renderWithAppContext(<Oops error={null} />);
3636
});
3737

38-
expect(tree).toMatchSnapshot();
38+
expect(tree.container).toMatchSnapshot();
3939
});
4040
});

src/renderer/components/Sidebar.test.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ describe('renderer/components/Sidebar.tsx', () => {
3636
},
3737
);
3838

39-
expect(tree).toMatchSnapshot();
39+
expect(tree.container).toMatchSnapshot();
4040
});
4141

4242
it('should render itself & its children (logged out)', () => {
@@ -49,7 +49,7 @@ describe('renderer/components/Sidebar.tsx', () => {
4949
},
5050
);
5151

52-
expect(tree).toMatchSnapshot();
52+
expect(tree.container).toMatchSnapshot();
5353
});
5454

5555
it('should navigate home when clicking logo', async () => {

0 commit comments

Comments
 (0)