Skip to content

Commit

Permalink
added a test for filtered Suspense node
Browse files Browse the repository at this point in the history
  • Loading branch information
IDrissAitHafid committed Oct 15, 2020
1 parent 4e308e4 commit 1c8d6b7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@ exports[`Store component filters should not break when Suspense nodes are filter
<Component>
`;
exports[`Store component filters should not break when Suspense nodes are filtered from the tree: 3: suspended 1`] = `
[root]
▾ <Wrapper>
▾ <Loading>
<div>
`;
exports[`Store component filters should support filtering by element type: 1: mount 1`] = `
[root]
▾ <Root>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -256,5 +256,8 @@ describe('Store component filters', () => {

act(() => ReactDOM.render(<Wrapper shouldSuspend={false} />, container));
expect(store).toMatchSnapshot('2: resolved');

act(() => ReactDOM.render(<Wrapper shouldSuspend={true} />, container));
expect(store).toMatchSnapshot('3: suspended');
});
});

0 comments on commit 1c8d6b7

Please sign in to comment.