Skip to content

Commit d8a31f0

Browse files
committed
test: refactor render with app context
Signed-off-by: Adam Setch <[email protected]>
1 parent 6681146 commit d8a31f0

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/renderer/components/filters/SearchFilterSuggestions.test.tsx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,26 @@ describe('renderer/components/filters/SearchFilterSuggestions.tsx', () => {
66
it('should render itself & its children - closed', () => {
77
const tree = renderWithAppContext(
88
<SearchFilterSuggestions inputValue={''} open={false} />,
9-
{
10-
settings: {
11-
...mockSettings,
12-
detailedNotifications: false,
13-
},
14-
},
159
);
1610

1711
expect(tree).toMatchSnapshot();
1812
});
1913

20-
it('should render itself & its children - open', () => {
14+
it('should render itself & its children - open without detailed notifications enabled', () => {
2115
const tree = renderWithAppContext(
2216
<SearchFilterSuggestions inputValue={''} open={true} />,
2317
{
2418
settings: {
2519
...mockSettings,
26-
detailedNotifications: true,
20+
detailedNotifications: false,
2721
},
2822
},
2923
);
3024

3125
expect(tree).toMatchSnapshot();
3226
});
3327

34-
it('should render itself & its children - open with detailed enabled', () => {
28+
it('should render itself & its children - open with detailed notifications enabled', () => {
3529
const tree = renderWithAppContext(
3630
<SearchFilterSuggestions inputValue={''} open={true} />,
3731
{

0 commit comments

Comments
 (0)