Commit 5c356b7a authored by Fernando's avatar Fernando

Rename corpus_upload_modal to corpus_upload form

* Rename component, update specs
parent a2667b22
<script>
import { GlButton, GlModal, GlModalDirective } from '@gitlab/ui';
import CorpusUploadModal from 'ee/security_configuration/corpus_management/components/corpus_upload_modal.vue';
import CorpusUploadForm from 'ee/security_configuration/corpus_management/components/corpus_upload_form.vue';
import { numberToHumanSize } from '~/lib/utils/number_utils';
import { s__ } from '~/locale';
import addCorpusMutation from '../graphql/mutations/add_corpus.mutation.graphql';
......@@ -11,7 +11,7 @@ export default {
components: {
GlButton,
GlModal,
CorpusUploadModal,
CorpusUploadForm,
},
directives: {
GlModalDirective,
......@@ -107,7 +107,7 @@ export default {
@primary="addCorpus"
@canceled="resetCorpus"
>
<corpus-upload-modal />
<corpus-upload-form />
</gl-modal>
</div>
</template>
......@@ -42,7 +42,7 @@ exports[`Corpus Upload component renders header 1`] = `
title="New corpus"
titletag="h4"
>
<corpus-upload-modal-stub />
<corpus-upload-form-stub />
</gl-modal-stub>
</div>
`;
import { createLocalVue, mount } from '@vue/test-utils';
import VueApollo from 'vue-apollo';
import CorpusUploadModal from 'ee/security_configuration/corpus_management/components/corpus_upload_modal.vue';
import CorpusUploadForm from 'ee/security_configuration/corpus_management/components/corpus_upload_form.vue';
import createMockApollo from 'helpers/mock_apollo_helper';
import waitForPromises from 'helpers/wait_for_promises';
......@@ -51,7 +51,7 @@ describe('Corpus upload modal', () => {
}
const createComponent = (resolverMock, options = {}) => {
wrapper = mount(CorpusUploadModal, {
wrapper = mount(CorpusUploadForm, {
localVue,
apolloProvider: createMockApolloProvider(resolverMock),
provide: {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment