Skip to content

Commit

Permalink
remove unit test that can be only applied once react native testing l…
Browse files Browse the repository at this point in the history
…ibrary is in place instead of enzyme
  • Loading branch information
tommasini committed Oct 25, 2024
1 parent ae3849d commit ce0bef3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions app/components/Views/Login/index.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ import Login from './';
import configureMockStore from 'redux-mock-store';
import { Provider } from 'react-redux';
import { backgroundState } from '../../../util/test/initial-root-state';
// eslint-disable-next-line import/no-namespace
import * as traceObj from '../../../util/trace';

const mockStore = configureMockStore();
const initialState = {
Expand All @@ -20,15 +18,11 @@ const store = mockStore(initialState);

describe('Login', () => {
it('should render correctly', () => {
const spyFetch = jest
.spyOn(traceObj, 'trace')
.mockImplementation(() => undefined);
const wrapper = shallow(
<Provider store={store}>
<Login />
</Provider>,
);
expect(wrapper).toMatchSnapshot();
expect(spyFetch).toHaveBeenCalledTimes(1);
});
});

0 comments on commit ce0bef3

Please sign in to comment.