summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorPhil Hughes <me@iamphill.com>2018-04-26 14:06:35 +0100
committerPhil Hughes <me@iamphill.com>2018-04-26 14:06:35 +0100
commit7311e69f5fa66f9cbf2e4100d47bd2a031879652 (patch)
tree2f13364aa8643c66b32909e9610000034e48430e /spec
parent9f35f6d9d53638aeb8ee917a388705458ddd87d7 (diff)
downloadgitlab-ce-7311e69f5fa66f9cbf2e4100d47bd2a031879652.tar.gz
added aria-label to buttons
updated variable name removed un-used prop
Diffstat (limited to 'spec')
-rw-r--r--spec/javascripts/ide/components/activity_bar_spec.js8
-rw-r--r--spec/javascripts/ide/components/ide_side_bar_spec.js4
2 files changed, 6 insertions, 6 deletions
diff --git a/spec/javascripts/ide/components/activity_bar_spec.js b/spec/javascripts/ide/components/activity_bar_spec.js
index 5c7b4909fc7..68277ed15eb 100644
--- a/spec/javascripts/ide/components/activity_bar_spec.js
+++ b/spec/javascripts/ide/components/activity_bar_spec.js
@@ -1,6 +1,6 @@
import Vue from 'vue';
import store from '~/ide/stores';
-import { ActivityBarViews } from '~/ide/constants';
+import { activityBarViews } from '~/ide/constants';
import ActivityBar from '~/ide/components/activity_bar.vue';
import { createComponentWithStore } from '../../helpers/vue_mount_component_helper';
import { resetStore } from '../helpers';
@@ -54,13 +54,13 @@ describe('IDE activity bar', () => {
it('calls updateActivityBarView with edit value on click', () => {
vm.$el.querySelector('.js-ide-edit-mode').click();
- expect(vm.updateActivityBarView).toHaveBeenCalledWith(ActivityBarViews.edit);
+ expect(vm.updateActivityBarView).toHaveBeenCalledWith(activityBarViews.edit);
});
it('calls updateActivityBarView with commit value on click', () => {
vm.$el.querySelector('.js-ide-commit-mode').click();
- expect(vm.updateActivityBarView).toHaveBeenCalledWith(ActivityBarViews.commit);
+ expect(vm.updateActivityBarView).toHaveBeenCalledWith(activityBarViews.commit);
});
});
@@ -74,7 +74,7 @@ describe('IDE activity bar', () => {
});
it('sets commit item active', done => {
- vm.$store.state.currentActivityView = ActivityBarViews.commit;
+ vm.$store.state.currentActivityView = activityBarViews.commit;
vm.$nextTick(() => {
expect(vm.$el.querySelector('.js-ide-commit-mode').classList).toContain('active');
diff --git a/spec/javascripts/ide/components/ide_side_bar_spec.js b/spec/javascripts/ide/components/ide_side_bar_spec.js
index 8784f2f965d..20ee20bc1d7 100644
--- a/spec/javascripts/ide/components/ide_side_bar_spec.js
+++ b/spec/javascripts/ide/components/ide_side_bar_spec.js
@@ -1,7 +1,7 @@
import Vue from 'vue';
import store from '~/ide/stores';
import ideSidebar from '~/ide/components/ide_side_bar.vue';
-import { ActivityBarViews } from '~/ide/constants';
+import { activityBarViews } from '~/ide/constants';
import { createComponentWithStore } from 'spec/helpers/vue_mount_component_helper';
import { resetStore } from '../helpers';
import { projectData } from '../mock_data';
@@ -45,7 +45,7 @@ describe('IdeSidebar', () => {
});
it('renders commit component', done => {
- vm.$store.state.currentActivityView = ActivityBarViews.commit;
+ vm.$store.state.currentActivityView = activityBarViews.commit;
vm.$nextTick(() => {
expect(vm.$el.querySelector('.multi-file-commit-panel-section')).not.toBeNull();