Rename merge request widget author component

This commit is contained in:
George Tsiolis 2018-05-22 11:27:47 +03:00
parent 592b8d716f
commit 385c0779da
5 changed files with 13 additions and 8 deletions

View file

@ -2,7 +2,7 @@
import tooltip from '../../vue_shared/directives/tooltip';
export default {
name: 'MRWidgetAuthor',
name: 'MrWidgetAuthor',
directives: {
tooltip,
},

View file

@ -1,10 +1,10 @@
<script>
import mrWidgetAuthor from './mr_widget_author.vue';
import MrWidgetAuthor from './mr_widget_author.vue';
export default {
name: 'MRWidgetAuthorTime',
components: {
mrWidgetAuthor,
MrWidgetAuthor,
},
props: {
actionText: {

View file

@ -1,13 +1,13 @@
<script>
import Flash from '../../../flash';
import statusIcon from '../mr_widget_status_icon.vue';
import mrWidgetAuthor from '../../components/mr_widget_author.vue';
import MrWidgetAuthor from '../../components/mr_widget_author.vue';
import eventHub from '../../event_hub';
export default {
name: 'MRWidgetMergeWhenPipelineSucceeds',
components: {
mrWidgetAuthor,
MrWidgetAuthor,
statusIcon,
},
props: {

View file

@ -0,0 +1,5 @@
---
title: Rename merge request widget author component
merge_request: 19079
author: George Tsiolis
type: changed

View file

@ -1,12 +1,12 @@
import Vue from 'vue';
import authorComponent from '~/vue_merge_request_widget/components/mr_widget_author.vue';
import MrWidgetAuthor from '~/vue_merge_request_widget/components/mr_widget_author.vue';
import mountComponent from 'spec/helpers/vue_mount_component_helper';
describe('MRWidgetAuthor', () => {
describe('MrWidgetAuthor', () => {
let vm;
beforeEach(() => {
const Component = Vue.extend(authorComponent);
const Component = Vue.extend(MrWidgetAuthor);
vm = mountComponent(Component, {
author: {