diff --git a/frontend/src/views/Pages/RegisterSelectCommunity.spec.js b/frontend/src/views/Pages/RegisterSelectCommunity.spec.js index 4488e970e..cd46a8313 100644 --- a/frontend/src/views/Pages/RegisterSelectCommunity.spec.js +++ b/frontend/src/views/Pages/RegisterSelectCommunity.spec.js @@ -3,6 +3,13 @@ import RegisterSelectCommunity from './RegisterSelectCommunity' const localVue = global.localVue +const spinnerHideMock = jest.fn() +const spinnerMock = jest.fn(() => { + return { + hide: spinnerHideMock, + } +}) + describe('RegisterSelectCommunity', () => { let wrapper @@ -21,6 +28,9 @@ describe('RegisterSelectCommunity', () => { }, }, }, + $loading: { + show: spinnerMock, + }, } const Wrapper = () => {