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
f9077b6a
Commit
f9077b6a
authored
Jan 06, 2021
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Named argument in setupSuccess
parent
f0d7f7e8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
ee/spec/frontend/on_demand_scans/components/on_demand_scans_form_spec.js
...d/on_demand_scans/components/on_demand_scans_form_spec.js
+2
-2
No files found.
ee/spec/frontend/on_demand_scans/components/on_demand_scans_form_spec.js
View file @
f9077b6a
...
...
@@ -73,7 +73,7 @@ describe('OnDemandScansForm', () => {
findSiteProfilesSelector
().
vm
.
$emit
(
'
input
'
,
nonValidatedSiteProfile
.
id
);
return
subject
.
vm
.
$nextTick
();
};
const
setupSuccess
=
(
edit
=
false
)
=>
{
const
setupSuccess
=
(
{
edit
=
false
}
=
{}
)
=>
{
jest
.
spyOn
(
subject
.
vm
.
$apollo
,
'
mutate
'
).
mockResolvedValue
({
data
:
{
[
edit
?
'
dastScanUpdate
'
:
'
dastScanCreate
'
]:
{
...
...
@@ -294,7 +294,7 @@ describe('OnDemandScansForm', () => {
dastScan
,
},
});
await
setupSuccess
(
true
);
await
setupSuccess
(
{
edit
:
true
}
);
actionFunction
();
});
...
...
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