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
0a3c44eb
Commit
0a3c44eb
authored
Mar 08, 2020
by
Fabio Huser
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Migrate spec/javascripts/cycle_analytics/ to Jest
Closes gitlab-org/gitlab#194224
parent
c901cb74
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
spec/frontend/cycle_analytics/banner_spec.js
spec/frontend/cycle_analytics/banner_spec.js
+2
-2
spec/frontend/cycle_analytics/total_time_component_spec.js
spec/frontend/cycle_analytics/total_time_component_spec.js
+1
-1
No files found.
spec/
javascripts
/cycle_analytics/banner_spec.js
→
spec/
frontend
/cycle_analytics/banner_spec.js
View file @
0a3c44eb
import
Vue
from
'
vue
'
;
import
mountComponent
from
'
spec/
helpers/vue_mount_component_helper
'
;
import
mountComponent
from
'
helpers/vue_mount_component_helper
'
;
import
banner
from
'
~/cycle_analytics/components/banner.vue
'
;
describe
(
'
Cycle analytics banner
'
,
()
=>
{
...
...
@@ -36,7 +36,7 @@ describe('Cycle analytics banner', () => {
});
it
(
'
should emit an event when close button is clicked
'
,
()
=>
{
spyOn
(
vm
,
'
$emit
'
);
jest
.
spyOn
(
vm
,
'
$emit
'
).
mockImplementation
(()
=>
{}
);
vm
.
$el
.
querySelector
(
'
.js-ca-dismiss-button
'
).
click
();
...
...
spec/
javascripts
/cycle_analytics/total_time_component_spec.js
→
spec/
frontend
/cycle_analytics/total_time_component_spec.js
View file @
0a3c44eb
import
Vue
from
'
vue
'
;
import
mountComponent
from
'
spec/
helpers/vue_mount_component_helper
'
;
import
mountComponent
from
'
helpers/vue_mount_component_helper
'
;
import
component
from
'
~/cycle_analytics/components/total_time_component.vue
'
;
describe
(
'
Total time component
'
,
()
=>
{
...
...
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