Commit 9641dac4 authored by Sarah Groff Hennigh-Palermo's avatar Sarah Groff Hennigh-Palermo

Merge branch 'fix-blank-codequality-diff-loading-error-flash-message' into 'master'

Fix blank error message for codequality diff

See merge request gitlab-org/gitlab!63230
parents f5cdda20 f6721845
...@@ -42,7 +42,9 @@ export const fetchCodequality = ({ commit, state, dispatch }) => { ...@@ -42,7 +42,9 @@ export const fetchCodequality = ({ commit, state, dispatch }) => {
} }
}, },
errorCallback: () => errorCallback: () =>
createFlash(__('Something went wrong on our end while loading the code quality diff.')), createFlash({
message: __('Something went wrong on our end while loading the code quality diff.'),
}),
}); });
if (!Visibility.hidden()) { if (!Visibility.hidden()) {
......
...@@ -63,7 +63,9 @@ describe('EE DiffsStoreActions', () => { ...@@ -63,7 +63,9 @@ describe('EE DiffsStoreActions', () => {
testAction(fetchCodequality, {}, { endpoint }, [], [], () => { testAction(fetchCodequality, {}, { endpoint }, [], [], () => {
expect(createFlash).toHaveBeenCalledTimes(1); expect(createFlash).toHaveBeenCalledTimes(1);
expect(createFlash).toHaveBeenCalledWith(expect.stringMatching('Something went wrong')); expect(createFlash).toHaveBeenCalledWith({
message: 'Something went wrong on our end while loading the code quality diff.',
});
done(); done();
}); });
}); });
......
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