Fix linter and existing unit tests.

This commit is contained in:
kialam
2019-01-07 17:17:22 -05:00
parent 517ef8a2c9
commit 395e30509b
3 changed files with 26 additions and 20 deletions

View File

@@ -120,11 +120,4 @@ describe('<App />', () => {
done();
});
test('Componenet makes REST call to API_CONFIG endpoint when mounted', () => {
api.get = jest.fn().mockImplementation(() => Promise.resolve({}));
const appWrapper = shallow(<App.WrappedComponent />);
expect(api.get).toHaveBeenCalledTimes(1);
expect(api.get).toHaveBeenCalledWith(API_CONFIG);
});
});