diff options
Diffstat (limited to 'spec/frontend/registry/explorer/components/project_empty_state_spec.js')
-rw-r--r-- | spec/frontend/registry/explorer/components/project_empty_state_spec.js | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/spec/frontend/registry/explorer/components/project_empty_state_spec.js b/spec/frontend/registry/explorer/components/project_empty_state_spec.js deleted file mode 100644 index 4b209646da9..00000000000 --- a/spec/frontend/registry/explorer/components/project_empty_state_spec.js +++ /dev/null @@ -1,46 +0,0 @@ -import Vuex from 'vuex'; -import { shallowMount, createLocalVue } from '@vue/test-utils'; -import { GlSprintf } from '@gitlab/ui'; -import { GlEmptyState } from '../stubs'; -import projectEmptyState from '~/registry/explorer/components/project_empty_state.vue'; -import * as getters from '~/registry/explorer/stores/getters'; - -const localVue = createLocalVue(); -localVue.use(Vuex); - -describe('Registry Project Empty state', () => { - let wrapper; - let store; - - beforeEach(() => { - store = new Vuex.Store({ - state: { - config: { - repositoryUrl: 'foo', - registryHostUrlWithPort: 'bar', - helpPagePath: 'baz', - twoFactorAuthHelpLink: 'barBaz', - personalAccessTokensHelpLink: 'fooBaz', - noContainersImage: 'bazFoo', - }, - }, - getters, - }); - wrapper = shallowMount(projectEmptyState, { - localVue, - store, - stubs: { - GlEmptyState, - GlSprintf, - }, - }); - }); - - afterEach(() => { - wrapper.destroy(); - }); - - it('to match the default snapshot', () => { - expect(wrapper.element).toMatchSnapshot(); - }); -}); |