Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/packages_and_registries/infrastructure_registry/components/terraform_installation_spec.js')
-rw-r--r--spec/frontend/packages_and_registries/infrastructure_registry/components/terraform_installation_spec.js62
1 files changed, 0 insertions, 62 deletions
diff --git a/spec/frontend/packages_and_registries/infrastructure_registry/components/terraform_installation_spec.js b/spec/frontend/packages_and_registries/infrastructure_registry/components/terraform_installation_spec.js
deleted file mode 100644
index ee1548ed5eb..00000000000
--- a/spec/frontend/packages_and_registries/infrastructure_registry/components/terraform_installation_spec.js
+++ /dev/null
@@ -1,62 +0,0 @@
-import { shallowMount, createLocalVue } from '@vue/test-utils';
-import Vuex from 'vuex';
-import { terraformModule as packageEntity } from 'jest/packages/mock_data';
-import TerraformInstallation from '~/packages_and_registries/infrastructure_registry/components/terraform_installation.vue';
-import CodeInstructions from '~/vue_shared/components/registry/code_instruction.vue';
-
-const localVue = createLocalVue();
-localVue.use(Vuex);
-
-describe('TerraformInstallation', () => {
- let wrapper;
-
- const store = new Vuex.Store({
- state: {
- packageEntity,
- gitlabHost: 'bar.dev',
- projectPath: 'foo',
- },
- });
-
- const findCodeInstructions = () => wrapper.findAllComponents(CodeInstructions);
-
- function createComponent() {
- wrapper = shallowMount(TerraformInstallation, {
- localVue,
- store,
- });
- }
-
- beforeEach(() => {
- createComponent();
- });
-
- afterEach(() => {
- wrapper.destroy();
- });
-
- it('renders all the messages', () => {
- expect(wrapper.element).toMatchSnapshot();
- });
-
- describe('installation commands', () => {
- it('renders the correct command', () => {
- expect(findCodeInstructions().at(0).props('instruction')).toMatchInlineSnapshot(`
- "module \\"my_module_name\\" {
- source = \\"bar.dev/foo/Test/system-22\\"
- version = \\"0.1\\"
- }"
- `);
- });
- });
-
- describe('setup commands', () => {
- it('renders the correct command', () => {
- expect(findCodeInstructions().at(1).props('instruction')).toMatchInlineSnapshot(`
- "credentials \\"bar.dev\\" {
- token = \\"<TOKEN>\\"
- }"
- `);
- });
- });
-});