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', () => { ...@@ -38,11 +38,11 @@ describe('custom metrics form fields component', () => {
}; };
beforeEach(() => { beforeEach(() => {
jest.spyOn(axios, 'post').mockImplementation(); jest.spyOn(axios, 'post').mockResolvedValue(validQueryResponse);
axios.post.mockResolvedValue(validQueryResponse);
}); });
afterEach(() => { afterEach(() => {
axios.post.mockRestore();
component.destroy(); 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