Skip to content

Instantly share code, notes, and snippets.

@realyze
Created July 20, 2018 00:22
Show Gist options
  • Save realyze/7edee7eb4f91b262df8480e77ad9c2d6 to your computer and use it in GitHub Desktop.
Save realyze/7edee7eb4f91b262df8480e77ad9c2d6 to your computer and use it in GitHub Desktop.
it('renders results', () => {
const { configuration } = install();
const Results = configuration.Results!;
expect(toJson(shallow(<Results />), {
noKey: false,
map: (val) => {
// Filter out noisy rxjs subscription from the snapshot.
if (val.type === 'ResultsListScrollContainer') {
val.props.resultState.subscription = {};
}
return val;
},
})).toMatchSnapshot();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment