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
5caee4fb
Commit
5caee4fb
authored
Mar 03, 2022
by
Samantha Ming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix variable name in mock data
Fix incorrect variable name from text to test
parent
b6446f61
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
spec/frontend/security_configuration/components/training_provider_list_spec.js
...y_configuration/components/training_provider_list_spec.js
+3
-3
spec/frontend/security_configuration/mock_data.js
spec/frontend/security_configuration/mock_data.js
+3
-3
No files found.
spec/frontend/security_configuration/components/training_provider_list_spec.js
View file @
5caee4fb
...
...
@@ -25,7 +25,7 @@ import {
updateSecurityTrainingProvidersResponse
,
updateSecurityTrainingProvidersErrorResponse
,
testProjectPath
,
te
x
tProviderIds
,
te
s
tProviderIds
,
}
from
'
../mock_data
'
;
Vue
.
use
(
VueApollo
);
...
...
@@ -71,7 +71,7 @@ describe('TrainingProviderList component', () => {
const
findLoader
=
()
=>
wrapper
.
findComponent
(
GlSkeletonLoader
);
const
findErrorAlert
=
()
=>
wrapper
.
findComponent
(
GlAlert
);
const
toggleFirstProvider
=
()
=>
findFirstToggle
().
vm
.
$emit
(
'
change
'
,
te
x
tProviderIds
[
0
]);
const
toggleFirstProvider
=
()
=>
findFirstToggle
().
vm
.
$emit
(
'
change
'
,
te
s
tProviderIds
[
0
]);
afterEach
(()
=>
{
wrapper
.
destroy
();
...
...
@@ -166,7 +166,7 @@ describe('TrainingProviderList component', () => {
mutation
:
configureSecurityTrainingProvidersMutation
,
variables
:
{
input
:
{
providerId
:
te
x
tProviderIds
[
0
],
providerId
:
te
s
tProviderIds
[
0
],
isEnabled
:
true
,
isPrimary
:
false
,
projectPath
:
testProjectPath
,
...
...
spec/frontend/security_configuration/mock_data.js
View file @
5caee4fb
export
const
testProjectPath
=
'
foo/bar
'
;
export
const
te
x
tProviderIds
=
[
101
,
102
];
export
const
te
s
tProviderIds
=
[
101
,
102
];
export
const
securityTrainingProviders
=
[
{
id
:
te
x
tProviderIds
[
0
],
id
:
te
s
tProviderIds
[
0
],
name
:
'
Vendor Name 1
'
,
description
:
'
Interactive developer security education
'
,
url
:
'
https://www.example.org/security/training
'
,
...
...
@@ -12,7 +12,7 @@ export const securityTrainingProviders = [
isPrimary
:
false
,
},
{
id
:
te
x
tProviderIds
[
1
],
id
:
te
s
tProviderIds
[
1
],
name
:
'
Vendor Name 2
'
,
description
:
'
Security training with guide and learning pathways.
'
,
url
:
'
https://www.vendornametwo.com/
'
,
...
...
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