Commit da137ec3 authored by tiagonbotelho's avatar tiagonbotelho

adds test to check json fields on simple request and changes the url request format

parent 9102ad1f
...@@ -401,7 +401,6 @@ class GitLabDropdown ...@@ -401,7 +401,6 @@ class GitLabDropdown
selected = true selected = true
# Set URL # Set URL
console.log(data)
if @options.url? if @options.url?
url = @options.url(data) url = @options.url(data)
else else
......
...@@ -22,7 +22,6 @@ describe 'Project Title', -> ...@@ -22,7 +22,6 @@ describe 'Project Title', ->
@projects_data = fixture.load('projects.json')[0] @projects_data = fixture.load('projects.json')[0]
spyOn(jQuery, 'ajax').and.callFake (req) => spyOn(jQuery, 'ajax').and.callFake (req) =>
expect(req.url).toBe('/api/v3/projects.json?simple=true') expect(req.url).toBe('/api/v3/projects.json?simple=true')
d = $.Deferred() d = $.Deferred()
d.resolve @projects_data d.resolve @projects_data
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment