Commit 58c9a083 authored by Vitaly Slobodin's avatar Vitaly Slobodin

Add mock.restore for axios

parent 77e043e2
......@@ -107,18 +107,17 @@ describe('Code navigation actions', () => {
},
],
[],
)
.then(() => {
expect(addInteractionClass).toHaveBeenCalledWith({
path: 'index.js',
d: {
start_line: 0,
start_char: 0,
hover: { value: '123' },
},
wrapTextNodes,
});
).then(() => {
expect(addInteractionClass).toHaveBeenCalledWith({
path: 'index.js',
d: {
start_line: 0,
start_char: 0,
hover: { value: '123' },
},
wrapTextNodes,
});
});
});
});
......
......@@ -206,9 +206,7 @@ describe('content_editor/extensions/attachment', () => {
return new Promise((resolve) => {
eventHub.$on('alert', ({ message, variant }) => {
expect(variant).toBe(VARIANT_DANGER);
expect(message).toBe(
'An error occurred while uploading the file. Please try again.',
);
expect(message).toBe('An error occurred while uploading the file. Please try again.');
resolve();
});
});
......
This diff is collapsed.
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