fix(tests): reset mocks between tests

Ensures that tests don't rely on previous tests mocking things
This commit is contained in:
Łukasz Mierzwa
2018-10-03 10:16:22 +01:00
parent 093dce1a58
commit 4e3635bc98
12 changed files with 31 additions and 7 deletions

View File

@@ -18,6 +18,10 @@ beforeEach(() => {
onHide.mockClear();
});
afterEach(() => {
jest.restoreAllMocks();
});
const FakeModal = () => {
return mount(
<MainModalContent