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
f7efc5f8
Commit
f7efc5f8
authored
May 28, 2018
by
Dennis Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update tests
parent
2e4bea09
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
3 deletions
+22
-3
spec/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown_spec.js
...ster_dropdowns/components/gke_project_id_dropdown_spec.js
+1
-1
spec/javascripts/projects/gke_cluster_dropdowns/stores/actions_spec.js
...pts/projects/gke_cluster_dropdowns/stores/actions_spec.js
+21
-2
No files found.
spec/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown_spec.js
View file @
f7efc5f8
...
@@ -47,7 +47,7 @@ describe('GkeProjectIdDropdown', () => {
...
@@ -47,7 +47,7 @@ describe('GkeProjectIdDropdown', () => {
});
});
it
(
'
returns project billing validation text
'
,
()
=>
{
it
(
'
returns project billing validation text
'
,
()
=>
{
vm
.
isValidatingProjectBilling
=
true
;
vm
.
setIsValidatingProjectBilling
(
true
)
;
expect
(
vm
.
toggleText
).
toBe
(
LABELS
.
VALIDATING_PROJECT_BILLING
);
expect
(
vm
.
toggleText
).
toBe
(
LABELS
.
VALIDATING_PROJECT_BILLING
);
});
});
...
...
spec/javascripts/projects/gke_cluster_dropdowns/stores/actions_spec.js
View file @
f7efc5f8
...
@@ -50,6 +50,19 @@ describe('GCP Cluster Dropdown Store Actions', () => {
...
@@ -50,6 +50,19 @@ describe('GCP Cluster Dropdown Store Actions', () => {
});
});
});
});
describe
(
'
setIsValidatingProjectBilling
'
,
()
=>
{
it
(
'
should set machine type
'
,
done
=>
{
testAction
(
actions
.
setIsValidatingProjectBilling
,
true
,
{
isValidatingProjectBilling
:
null
},
[{
type
:
'
SET_IS_VALIDATING_PROJECT_BILLING
'
,
payload
:
true
}],
[],
done
,
);
});
});
describe
(
'
async fetch methods
'
,
()
=>
{
describe
(
'
async fetch methods
'
,
()
=>
{
window
.
gapi
=
gapi
();
window
.
gapi
=
gapi
();
...
@@ -74,10 +87,16 @@ describe('GCP Cluster Dropdown Store Actions', () => {
...
@@ -74,10 +87,16 @@ describe('GCP Cluster Dropdown Store Actions', () => {
true
,
true
,
{
{
selectedProject
:
selectedProjectMock
,
selectedProject
:
selectedProjectMock
,
selectedZone
:
''
,
selectedMachineType
:
''
,
projectHasBillingEnabled
:
null
,
projectHasBillingEnabled
:
null
,
},
},
[{
type
:
'
SET_PROJECT_BILLING_STATUS
'
,
payload
:
true
}],
[
[],
{
type
:
'
SET_ZONE
'
,
payload
:
''
},
{
type
:
'
SET_MACHINE_TYPE
'
,
payload
:
''
},
{
type
:
'
SET_PROJECT_BILLING_STATUS
'
,
payload
:
true
},
],
[{
type
:
'
setIsValidatingProjectBilling
'
,
payload
:
false
}],
done
,
done
,
);
);
});
});
...
...
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