Skip to content
Snippets Groups Projects
Verified Commit 52746cee authored by Artur Fedorov's avatar Artur Fedorov :three:
Browse files

Fix Vue3 tests failures

This MR fix stubbing of
components with scopes slots
parent f013ffd9
No related branches found
No related tags found
1 merge request!164416Fix Vue3 tests failures
......@@ -17,18 +17,6 @@ describe('DoraPerformersScore Visualization', () => {
const namespace = 'some/fake/path';
const mockNamespaceProvider = (args = {}) => ({
render() {
return this.$scopedSlots.default({
group: mockGroup,
project: null,
isProject: false,
isNamespaceLoading: false,
...args,
});
},
});
const createWrapper = ({ props = {}, group = null, project = null, stubs } = {}) => {
mockGroupOrProjectRequestHandler = jest.fn().mockReturnValueOnce({ data: { group, project } });
......@@ -55,7 +43,6 @@ describe('DoraPerformersScore Visualization', () => {
it('displays a loading state', () => {
createWrapper({
group: mockGroup,
stubs: { GroupOrProjectProvider: mockNamespaceProvider({ isNamespaceLoading: true }) },
});
expect(findLoadingIcon().exists()).toBe(true);
......
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