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
84629f73
Commit
84629f73
authored
Feb 08, 2018
by
Kushal Pandya
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Roadmap App Service
parent
986133cd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
ee/app/assets/javascripts/roadmap/service/roadmap_service.js
ee/app/assets/javascripts/roadmap/service/roadmap_service.js
+11
-0
spec/javascripts/roadmap/service/roadmap_service_spec.js
spec/javascripts/roadmap/service/roadmap_service_spec.js
+20
-0
No files found.
ee/app/assets/javascripts/roadmap/service/roadmap_service.js
0 → 100644
View file @
84629f73
import
axios
from
'
~/lib/utils/axios_utils
'
;
export
default
class
RoadmapService
{
constructor
(
epicsPath
)
{
this
.
epicsPath
=
epicsPath
;
}
getEpics
()
{
return
axios
.
get
(
this
.
epicsPath
);
}
}
spec/javascripts/roadmap/service/roadmap_service_spec.js
0 → 100644
View file @
84629f73
import
axios
from
'
~/lib/utils/axios_utils
'
;
import
RoadmapService
from
'
ee/roadmap/service/roadmap_service
'
;
import
{
epicsPath
}
from
'
../mock_data
'
;
describe
(
'
RoadmapService
'
,
()
=>
{
let
service
;
beforeEach
(()
=>
{
service
=
new
RoadmapService
(
epicsPath
);
});
describe
(
'
getEpics
'
,
()
=>
{
it
(
'
returns axios instance for Epics path
'
,
()
=>
{
spyOn
(
axios
,
'
get
'
).
and
.
stub
();
service
.
getEpics
();
expect
(
axios
.
get
).
toHaveBeenCalledWith
(
service
.
epicsPath
);
});
});
});
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