diff options
author | Phil Hughes <me@iamphill.com> | 2018-06-28 15:32:54 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-29 09:29:31 +0100 |
commit | d4fce4dc2f50b7cf8e0de009384f313f07b0156a (patch) | |
tree | 950b75603cc094adfb7afae1e13811f6a2e5ca81 | |
parent | fa8c82c7ec6bb380c1b90421e99b6e8cdee3d790 (diff) | |
download | gitlab-ce-d4fce4dc2f50b7cf8e0de009384f313f07b0156a.tar.gz |
fixed eslint
-rw-r--r-- | app/assets/javascripts/ide/stores/actions/file.js | 1 | ||||
-rw-r--r-- | spec/javascripts/ide/components/repo_commit_section_spec.js | 1 | ||||
-rw-r--r-- | spec/javascripts/ide/stores/actions/file_spec.js | 35 |
3 files changed, 18 insertions, 19 deletions
diff --git a/app/assets/javascripts/ide/stores/actions/file.js b/app/assets/javascripts/ide/stores/actions/file.js index 1111a14a7d7..314bb01efdd 100644 --- a/app/assets/javascripts/ide/stores/actions/file.js +++ b/app/assets/javascripts/ide/stores/actions/file.js @@ -1,4 +1,3 @@ -import { normalizeHeaders } from '~/lib/utils/common_utils'; import { __ } from '../../../locale'; import eventHub from '../../eventhub'; import service from '../../services'; diff --git a/spec/javascripts/ide/components/repo_commit_section_spec.js b/spec/javascripts/ide/components/repo_commit_section_spec.js index 8df48d8aeae..30cd92b2ca4 100644 --- a/spec/javascripts/ide/components/repo_commit_section_spec.js +++ b/spec/javascripts/ide/components/repo_commit_section_spec.js @@ -1,6 +1,5 @@ import Vue from 'vue'; import store from '~/ide/stores'; -import service from '~/ide/services'; import router from '~/ide/ide_router'; import repoCommitSection from '~/ide/components/repo_commit_section.vue'; import { createComponentWithStore } from 'spec/helpers/vue_mount_component_helper'; diff --git a/spec/javascripts/ide/stores/actions/file_spec.js b/spec/javascripts/ide/stores/actions/file_spec.js index 36f21f22d62..0dd3f7b5374 100644 --- a/spec/javascripts/ide/stores/actions/file_spec.js +++ b/spec/javascripts/ide/stores/actions/file_spec.js @@ -2,7 +2,6 @@ import Vue from 'vue'; import MockAdapter from 'axios-mock-adapter'; import axios from '~/lib/utils/axios_utils'; import store from '~/ide/stores'; -import { getFileData, getRawFileData } from '~/ide/stores/actions/file'; import * as actions from '~/ide/stores/actions/file'; import * as types from '~/ide/stores/mutation_types'; import service from '~/ide/services'; @@ -293,14 +292,15 @@ describe('IDE store file actions', () => { it('dispatches error action', done => { const dispatch = jasmine.createSpy('dispatch'); - getFileData( - { - state: store.state, - commit() {}, - dispatch, - }, - { path: localFile.path }, - ) + actions + .getFileData( + { + state: store.state, + commit() {}, + dispatch, + }, + { path: localFile.path }, + ) .then(() => { expect(dispatch).toHaveBeenCalledWith('setErrorMessage', { text: 'An error occured whilst loading the file.', @@ -381,14 +381,15 @@ describe('IDE store file actions', () => { it('dispatches error action', done => { const dispatch = jasmine.createSpy('dispatch'); - getRawFileData( - { - state: store.state, - commit() {}, - dispatch, - }, - { path: tmpFile.path, baseSha: tmpFile.baseSha }, - ) + actions + .getRawFileData( + { + state: store.state, + commit() {}, + dispatch, + }, + { path: tmpFile.path, baseSha: tmpFile.baseSha }, + ) .then(done.fail) .catch(() => { expect(dispatch).toHaveBeenCalledWith('setErrorMessage', { |