Reset axios mock after each test

parent 800ad495
...@@ -20,7 +20,10 @@ describe('Panel Type component', () => { ...@@ -20,7 +20,10 @@ describe('Panel Type component', () => {
beforeEach(() => { beforeEach(() => {
axiosMock = new AxiosMockAdapter(axios); axiosMock = new AxiosMockAdapter(axios);
axiosMock.onAny().reply(200); });
afterEach(() => {
axiosMock.reset();
}); });
describe('When no graphData is available', () => { describe('When no graphData is available', () => {
......
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