1
0
mirror of https://github.com/verdaccio/verdaccio.git synced 2024-11-08 23:25:51 +01: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

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