BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
3daa298d
Commit
3daa298d
authored
May 11, 2018
by
Dennis Tang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
eslint fixes
parent
af3dd043
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
13 deletions
+9
-13
gke_machine_type_dropdown.vue
...luster_dropdowns/components/gke_machine_type_dropdown.vue
+0
-1
gke_project_id_dropdown_spec.js
...ster_dropdowns/components/gke_project_id_dropdown_spec.js
+9
-12
No files found.
app/assets/javascripts/projects/gke_cluster_dropdowns/components/gke_machine_type_dropdown.vue
View file @
3daa298d
<
script
>
import
_
from
'underscore'
;
import
{
s__
}
from
'~/locale'
;
import
{
mapState
,
mapGetters
,
mapActions
}
from
'vuex'
;
...
...
spec/javascripts/projects/gke_cluster_dropdowns/components/gke_project_id_dropdown_spec.js
View file @
3daa298d
...
...
@@ -42,31 +42,28 @@ describe('GkeProjectIdDropdown', () => {
expect
(
vm
.
toggleText
).
toBe
(
LABELS
.
LOADING
);
});
it
(
'returns default toggle text'
,
done
=>
{
return
vm
.
$nextTick
().
then
(()
=>
{
it
(
'returns default toggle text'
,
done
=>
vm
.
$nextTick
().
then
(()
=>
{
vm
.
setItem
(
emptyProjectMock
);
expect
(
vm
.
toggleText
).
toBe
(
LABELS
.
DEFAULT
);
done
();
});
});
}));
it
(
'returns project name if project selected'
,
done
=>
{
return
vm
.
$nextTick
().
then
(()
=>
{
it
(
'returns project name if project selected'
,
done
=>
vm
.
$nextTick
().
then
(()
=>
{
expect
(
vm
.
toggleText
).
toBe
(
selectedProjectMock
.
name
);
done
();
});
});
}));
it
(
'returns empty toggle text'
,
done
=>
{
return
vm
.
$nextTick
().
then
(()
=>
{
it
(
'returns empty toggle text'
,
done
=>
vm
.
$nextTick
().
then
(()
=>
{
vm
.
$store
.
commit
(
SET_PROJECTS
,
[]);
vm
.
setItem
(
emptyProjectMock
);
expect
(
vm
.
toggleText
).
toBe
(
LABELS
.
EMPTY
);
done
();
});
});
}));
});
describe
(
'selectItem'
,
()
=>
{
...
...
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