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
59996871
Commit
59996871
authored
Dec 04, 2020
by
Paul Gascou-Vaillancourt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use global apollo provider in specs
parent
484280c5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ee/spec/frontend/security_configuration/dast_profiles/components/dast_site_profiles_list_spec.js
.../dast_profiles/components/dast_site_profiles_list_spec.js
+4
-2
No files found.
ee/spec/frontend/security_configuration/dast_profiles/components/dast_site_profiles_list_spec.js
View file @
59996871
...
@@ -19,6 +19,7 @@ describe('EE - DastSiteProfileList', () => {
...
@@ -19,6 +19,7 @@ describe('EE - DastSiteProfileList', () => {
let
localVue
;
let
localVue
;
let
wrapper
;
let
wrapper
;
let
requestHandlers
;
let
requestHandlers
;
let
apolloProvider
;
const
defaultProps
=
{
const
defaultProps
=
{
profiles
:
[],
profiles
:
[],
...
@@ -40,7 +41,7 @@ describe('EE - DastSiteProfileList', () => {
...
@@ -40,7 +41,7 @@ describe('EE - DastSiteProfileList', () => {
const
wrapperFactory
=
(
mountFn
=
shallowMount
)
=>
(
options
=
{},
handlers
)
=>
{
const
wrapperFactory
=
(
mountFn
=
shallowMount
)
=>
(
options
=
{},
handlers
)
=>
{
localVue
=
createLocalVue
();
localVue
=
createLocalVue
();
const
apolloProvider
=
handlers
&&
createMockApolloProvider
(
handlers
);
apolloProvider
=
handlers
&&
createMockApolloProvider
(
handlers
);
wrapper
=
mountFn
(
wrapper
=
mountFn
(
Component
,
Component
,
merge
(
merge
(
...
@@ -72,6 +73,7 @@ describe('EE - DastSiteProfileList', () => {
...
@@ -72,6 +73,7 @@ describe('EE - DastSiteProfileList', () => {
afterEach
(()
=>
{
afterEach
(()
=>
{
wrapper
.
destroy
();
wrapper
.
destroy
();
apolloProvider
=
null
;
});
});
it
(
'
renders profile list properly
'
,
()
=>
{
it
(
'
renders profile list properly
'
,
()
=>
{
...
@@ -174,7 +176,7 @@ describe('EE - DastSiteProfileList', () => {
...
@@ -174,7 +176,7 @@ describe('EE - DastSiteProfileList', () => {
fullPath
:
defaultProps
.
fullPath
,
fullPath
:
defaultProps
.
fullPath
,
normalizedTargetUrl
,
normalizedTargetUrl
,
status
,
status
,
store
:
wrapper
.
vm
.
$apollo
.
getClient
()
,
store
:
apolloProvider
.
defaultClient
,
});
});
},
},
);
);
...
...
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