0
Fork 0
mirror of https://github.com/verdaccio/verdaccio.git synced 2025-01-20 22:52:46 -05:00

chore: remove snapshots

This commit is contained in:
Juan Picado 2021-05-05 22:51:49 +02:00
parent 7fb5c45243
commit 393125baa1
2 changed files with 2 additions and 1053 deletions

View file

@ -23,7 +23,7 @@ const props = {
/* eslint-disable react/jsx-no-bind*/ /* eslint-disable react/jsx-no-bind*/
describe('<Header /> component with logged in state', () => { describe('<Header /> component with logged in state', () => {
test('should load the component in logged out state', () => { test('should load the component in logged out state', () => {
const { container, queryByTestId, getByText } = render( const { queryByTestId, getByText } = render(
<Router> <Router>
<AppContextProvider> <AppContextProvider>
<Header /> <Header />
@ -31,13 +31,12 @@ describe('<Header /> component with logged in state', () => {
</Router> </Router>
); );
expect(container.firstChild).toMatchSnapshot();
expect(queryByTestId('header--menu-accountcircle')).toBeNull(); expect(queryByTestId('header--menu-accountcircle')).toBeNull();
expect(getByText('Login')).toBeTruthy(); expect(getByText('Login')).toBeTruthy();
}); });
test('should load the component in logged in state', () => { test('should load the component in logged in state', () => {
const { container, getByTestId, queryByText } = render( const { getByTestId, queryByText } = render(
<Router> <Router>
<AppContextProvider user={props.user}> <AppContextProvider user={props.user}>
<Header /> <Header />
@ -45,7 +44,6 @@ describe('<Header /> component with logged in state', () => {
</Router> </Router>
); );
expect(container.firstChild).toMatchSnapshot();
expect(getByTestId('header--menu-accountcircle')).toBeTruthy(); expect(getByTestId('header--menu-accountcircle')).toBeTruthy();
expect(queryByText('Login')).toBeNull(); expect(queryByText('Login')).toBeNull();
}); });