mirror of
https://github.com/ansible/awx.git
synced 2026-05-05 16:37:37 -02:30
Fix linter and existing unit tests.
This commit is contained in:
@@ -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);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user