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
ec54a562
Commit
ec54a562
authored
Jul 03, 2019
by
Simon Knox
Committed by
Kushal Pandya
Jul 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move error_tracking_frontend specs to Jest
Update TEST_HOST import paths. Tests all pass
parent
7a874689
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
10 additions
and
7 deletions
+10
-7
spec/frontend/error_tracking_settings/components/app_spec.js
spec/frontend/error_tracking_settings/components/app_spec.js
+1
-1
spec/frontend/error_tracking_settings/components/error_tracking_form_spec.js
..._tracking_settings/components/error_tracking_form_spec.js
+0
-0
spec/frontend/error_tracking_settings/components/project_dropdown_spec.js
...ror_tracking_settings/components/project_dropdown_spec.js
+0
-0
spec/frontend/error_tracking_settings/mock.js
spec/frontend/error_tracking_settings/mock.js
+1
-1
spec/frontend/error_tracking_settings/store/actions_spec.js
spec/frontend/error_tracking_settings/store/actions_spec.js
+7
-4
spec/frontend/error_tracking_settings/store/getters_spec.js
spec/frontend/error_tracking_settings/store/getters_spec.js
+0
-0
spec/frontend/error_tracking_settings/store/mutation_spec.js
spec/frontend/error_tracking_settings/store/mutation_spec.js
+1
-1
spec/frontend/error_tracking_settings/utils_spec.js
spec/frontend/error_tracking_settings/utils_spec.js
+0
-0
No files found.
spec/
javascripts
/error_tracking_settings/components/app_spec.js
→
spec/
frontend
/error_tracking_settings/components/app_spec.js
View file @
ec54a562
...
...
@@ -4,7 +4,7 @@ import ErrorTrackingSettings from '~/error_tracking_settings/components/app.vue'
import
ErrorTrackingForm
from
'
~/error_tracking_settings/components/error_tracking_form.vue
'
;
import
ProjectDropdown
from
'
~/error_tracking_settings/components/project_dropdown.vue
'
;
import
createStore
from
'
~/error_tracking_settings/store
'
;
import
{
TEST_HOST
}
from
'
spec
/test_constants
'
;
import
{
TEST_HOST
}
from
'
helpers
/test_constants
'
;
const
localVue
=
createLocalVue
();
localVue
.
use
(
Vuex
);
...
...
spec/
javascripts
/error_tracking_settings/components/error_tracking_form_spec.js
→
spec/
frontend
/error_tracking_settings/components/error_tracking_form_spec.js
View file @
ec54a562
File moved
spec/
javascripts
/error_tracking_settings/components/project_dropdown_spec.js
→
spec/
frontend
/error_tracking_settings/components/project_dropdown_spec.js
View file @
ec54a562
File moved
spec/
javascripts
/error_tracking_settings/mock.js
→
spec/
frontend
/error_tracking_settings/mock.js
View file @
ec54a562
import
createStore
from
'
~/error_tracking_settings/store
'
;
import
{
TEST_HOST
}
from
'
spec
/test_constants
'
;
import
{
TEST_HOST
}
from
'
../helpers
/test_constants
'
;
const
defaultStore
=
createStore
();
...
...
spec/
javascripts
/error_tracking_settings/store/actions_spec.js
→
spec/
frontend
/error_tracking_settings/store/actions_spec.js
View file @
ec54a562
import
MockAdapter
from
'
axios-mock-adapter
'
;
import
testAction
from
'
spec/
helpers/vuex_action_helper
'
;
import
{
TEST_HOST
}
from
'
spec
/test_constants
'
;
import
testAction
from
'
helpers/vuex_action_helper
'
;
import
{
TEST_HOST
}
from
'
helpers
/test_constants
'
;
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
{
convertObjectPropsToCamelCase
}
from
'
~/lib/utils/common_utils
'
;
import
actionsDefaultExport
,
*
as
actions
from
'
~/error_tracking_settings/store/actions
'
;
import
{
refreshCurrentPage
}
from
'
~/lib/utils/url_utility
'
;
import
*
as
actions
from
'
~/error_tracking_settings/store/actions
'
;
import
*
as
types
from
'
~/error_tracking_settings/store/mutation_types
'
;
import
defaultState
from
'
~/error_tracking_settings/store/state
'
;
import
{
projectList
}
from
'
../mock
'
;
jest
.
mock
(
'
~/lib/utils/url_utility
'
);
describe
(
'
error tracking settings actions
'
,
()
=>
{
let
state
;
...
...
@@ -21,6 +24,7 @@ describe('error tracking settings actions', () => {
afterEach
(()
=>
{
mock
.
restore
();
refreshCurrentPage
.
mockClear
();
});
it
(
'
should request and transform the project list
'
,
done
=>
{
...
...
@@ -111,7 +115,6 @@ describe('error tracking settings actions', () => {
});
it
(
'
should save the page
'
,
done
=>
{
const
refreshCurrentPage
=
spyOnDependency
(
actionsDefaultExport
,
'
refreshCurrentPage
'
);
mock
.
onPatch
(
TEST_HOST
).
reply
(
200
);
testAction
(
actions
.
updateSettings
,
null
,
state
,
[],
[{
type
:
'
requestSettings
'
}],
()
=>
{
expect
(
mock
.
history
.
patch
.
length
).
toBe
(
1
);
...
...
spec/
javascripts
/error_tracking_settings/store/getters_spec.js
→
spec/
frontend
/error_tracking_settings/store/getters_spec.js
View file @
ec54a562
File moved
spec/
javascripts
/error_tracking_settings/store/mutation_spec.js
→
spec/
frontend
/error_tracking_settings/store/mutation_spec.js
View file @
ec54a562
import
{
TEST_HOST
}
from
'
spec
/test_constants
'
;
import
{
TEST_HOST
}
from
'
helpers
/test_constants
'
;
import
mutations
from
'
~/error_tracking_settings/store/mutations
'
;
import
defaultState
from
'
~/error_tracking_settings/store/state
'
;
import
*
as
types
from
'
~/error_tracking_settings/store/mutation_types
'
;
...
...
spec/
javascripts
/error_tracking_settings/utils_spec.js
→
spec/
frontend
/error_tracking_settings/utils_spec.js
View file @
ec54a562
File moved
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