Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
877d3be2
Commit
877d3be2
authored
Dec 02, 2019
by
Andrew Fontaine
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-Order Imports for Feature Flag Specs
This is part of a new eslint configuration.
parent
9c119867
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
8 deletions
+8
-8
ee/spec/frontend/feature_flags/components/edit_feature_flag_spec.js
...ontend/feature_flags/components/edit_feature_flag_spec.js
+2
-2
ee/spec/frontend/feature_flags/components/environments_dropdown_spec.js
...nd/feature_flags/components/environments_dropdown_spec.js
+1
-1
ee/spec/frontend/feature_flags/components/feature_flags_spec.js
...c/frontend/feature_flags/components/feature_flags_spec.js
+1
-1
ee/spec/frontend/feature_flags/components/form_spec.js
ee/spec/frontend/feature_flags/components/form_spec.js
+1
-1
ee/spec/frontend/feature_flags/store/edit/actions_spec.js
ee/spec/frontend/feature_flags/store/edit/actions_spec.js
+1
-1
ee/spec/frontend/feature_flags/store/index/actions_spec.js
ee/spec/frontend/feature_flags/store/index/actions_spec.js
+1
-1
ee/spec/frontend/feature_flags/store/new/actions_spec.js
ee/spec/frontend/feature_flags/store/new/actions_spec.js
+1
-1
No files found.
ee/spec/frontend/feature_flags/components/edit_feature_flag_spec.js
View file @
877d3be2
import
Vuex
from
'
vuex
'
;
import
{
createLocalVue
,
shallowMount
}
from
'
@vue/test-utils
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_util
s
'
;
import
{
TEST_HOST
}
from
'
spec/test_constant
s
'
;
import
Form
from
'
ee/feature_flags/components/form.vue
'
;
import
editModule
from
'
ee/feature_flags/store/modules/edit
'
;
import
EditFeatureFlag
from
'
ee/feature_flags/components/edit_feature_flag.vue
'
;
import
{
TEST_HOST
}
from
'
spec/test_constant
s
'
;
import
axios
from
'
~/lib/utils/axios_util
s
'
;
const
localVue
=
createLocalVue
();
localVue
.
use
(
Vuex
);
...
...
ee/spec/frontend/feature_flags/components/environments_dropdown_spec.js
View file @
877d3be2
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
{
createLocalVue
,
mount
}
from
'
@vue/test-utils
'
;
import
{
GlLoadingIcon
}
from
'
@gitlab/ui
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
EnvironmentsDropdown
from
'
ee/feature_flags/components/environments_dropdown.vue
'
;
import
{
TEST_HOST
}
from
'
spec/test_constants
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
const
localVue
=
createLocalVue
();
...
...
ee/spec/frontend/feature_flags/components/feature_flags_spec.js
View file @
877d3be2
import
Vue
from
'
vue
'
;
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
featureFlagsComponent
from
'
ee/feature_flags/components/feature_flags.vue
'
;
import
mountComponent
from
'
helpers/vue_mount_component_helper
'
;
import
{
trimText
}
from
'
helpers/text_helper
'
;
import
{
TEST_HOST
}
from
'
spec/test_constants
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
getRequestData
}
from
'
../mock_data
'
;
describe
(
'
Feature flags
'
,
()
=>
{
...
...
ee/spec/frontend/feature_flags/components/form_spec.js
View file @
877d3be2
...
...
@@ -2,7 +2,6 @@ import _ from 'underscore';
import
{
createLocalVue
,
mount
}
from
'
@vue/test-utils
'
;
import
{
GlFormTextarea
,
GlFormCheckbox
}
from
'
@gitlab/ui
'
;
import
Form
from
'
ee/feature_flags/components/form.vue
'
;
import
ToggleButton
from
'
~/vue_shared/components/toggle_button.vue
'
;
import
EnvironmentsDropdown
from
'
ee/feature_flags/components/environments_dropdown.vue
'
;
import
{
ROLLOUT_STRATEGY_ALL_USERS
,
...
...
@@ -10,6 +9,7 @@ import {
INTERNAL_ID_PREFIX
,
DEFAULT_PERCENT_ROLLOUT
,
}
from
'
ee/feature_flags/constants
'
;
import
ToggleButton
from
'
~/vue_shared/components/toggle_button.vue
'
;
import
{
featureFlag
}
from
'
../mock_data
'
;
describe
(
'
feature flag form
'
,
()
=>
{
...
...
ee/spec/frontend/feature_flags/store/edit/actions_spec.js
View file @
877d3be2
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
setEndpoint
,
setPath
,
...
...
@@ -17,6 +16,7 @@ import state from 'ee/feature_flags/store/modules/edit/state';
import
*
as
types
from
'
ee/feature_flags/store/modules/edit/mutation_types
'
;
import
testAction
from
'
helpers/vuex_action_helper
'
;
import
{
TEST_HOST
}
from
'
spec/test_constants
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
jest
.
mock
(
'
~/lib/utils/url_utility
'
);
...
...
ee/spec/frontend/feature_flags/store/index/actions_spec.js
View file @
877d3be2
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
requestFeatureFlags
,
receiveFeatureFlagsSuccess
,
...
...
@@ -18,6 +17,7 @@ import state from 'ee/feature_flags/store/modules/index/state';
import
*
as
types
from
'
ee/feature_flags/store/modules/index/mutation_types
'
;
import
testAction
from
'
helpers/vuex_action_helper
'
;
import
{
TEST_HOST
}
from
'
spec/test_constants
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
getRequestData
,
rotateData
}
from
'
../../mock_data
'
;
describe
(
'
Feature flags actions
'
,
()
=>
{
...
...
ee/spec/frontend/feature_flags/store/new/actions_spec.js
View file @
877d3be2
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
setEndpoint
,
setPath
,
...
...
@@ -17,6 +16,7 @@ import {
ROLLOUT_STRATEGY_PERCENT_ROLLOUT
,
}
from
'
ee/feature_flags/constants
'
;
import
{
mapFromScopesViewModel
}
from
'
ee/feature_flags/store/modules/helpers
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
jest
.
mock
(
'
~/lib/utils/url_utility
'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment