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
e021f274
Commit
e021f274
authored
Mar 25, 2020
by
Samantha Ming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert approvals app_spec to a jest test
parent
67aef3cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
ee/spec/frontend/approvals/components/app_spec.js
ee/spec/frontend/approvals/components/app_spec.js
+8
-3
No files found.
ee/spec/
javascripts
/approvals/components/app_spec.js
→
ee/spec/
frontend
/approvals/components/app_spec.js
View file @
e021f274
...
...
@@ -38,8 +38,13 @@ describe('EE Approvals App', () => {
canEdit
:
true
,
prefix
:
APP_PREFIX
,
});
spyOn
(
store
.
modules
.
approvals
.
actions
,
'
fetchRules
'
);
spyOn
(
store
.
modules
.
createModal
.
actions
,
'
open
'
);
store
.
modules
.
approvals
.
actions
=
{
fetchRules
:
jest
.
fn
(),
};
jest
.
spyOn
(
store
.
modules
.
approvals
.
actions
,
'
fetchRules
'
);
jest
.
spyOn
(
store
.
modules
.
createModal
.
actions
,
'
open
'
);
});
describe
(
'
when allow multi rule
'
,
()
=>
{
...
...
@@ -136,7 +141,7 @@ describe('EE Approvals App', () => {
findAddButton
().
vm
.
$emit
(
'
click
'
);
expect
(
store
.
modules
.
createModal
.
actions
.
open
).
toHaveBeenCalledWith
(
jasmine
.
anything
(),
expect
.
anything
(),
null
,
undefined
,
);
...
...
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