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

Add mock.restore for axios

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