This commit is contained in:
Keith Grant
2020-09-17 13:46:43 -07:00
parent cde8cb57da
commit 43d339d1cd

View File

@@ -1,12 +1,10 @@
import React from 'react'; import React from 'react';
import { act } from 'react-dom/test-utils'; import { act } from 'react-dom/test-utils';
import { import {
mountWithContexts, mountWithContexts,
waitForElement, waitForElement,
} from '../../../testUtils/enzymeHelpers'; } from '../../../testUtils/enzymeHelpers';
import { ConfigAPI, MeAPI, RootAPI } from '../../api'; import { ConfigAPI, MeAPI, RootAPI } from '../../api';
import AppContainer from './AppContainer'; import AppContainer from './AppContainer';
jest.mock('../../api'); jest.mock('../../api');
@@ -58,6 +56,7 @@ describe('<AppContainer />', () => {
</AppContainer> </AppContainer>
); );
}); });
wrapper.update();
// page components // page components
expect(wrapper.length).toBe(1); expect(wrapper.length).toBe(1);