Commit 5da5e072 authored by Mike Greiling's avatar Mike Greiling

Remove unneeded mock call and tidy up

parent 69b7cd8d
......@@ -38,11 +38,11 @@ describe('custom metrics form fields component', () => {
};
beforeEach(() => {
jest.spyOn(axios, 'post').mockImplementation();
axios.post.mockResolvedValue(validQueryResponse);
jest.spyOn(axios, 'post').mockResolvedValue(validQueryResponse);
});
afterEach(() => {
axios.post.mockRestore();
component.destroy();
});
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment