Created
July 20, 2018 00:22
-
-
Save realyze/7edee7eb4f91b262df8480e77ad9c2d6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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