Skip to content
Snippets Groups Projects
Commit 9641dac4 authored by Sarah Groff Hennigh-Palermo's avatar Sarah Groff Hennigh-Palermo :ghost:
Browse files

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

Fix blank error message for codequality diff

See merge request !63230
parents f5cdda20 f6721845
No related branches found
No related tags found
1 merge request!63230Fix blank error message for codequality diff
Pipeline #314469388 passed
......@@ -42,7 +42,9 @@ export const fetchCodequality = ({ commit, state, dispatch }) => {
}
},
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()) {
......
......@@ -63,7 +63,9 @@ describe('EE DiffsStoreActions', () => {
testAction(fetchCodequality, {}, { endpoint }, [], [], () => {
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();
});
});
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment