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
7875e343
Commit
7875e343
authored
May 25, 2018
by
André Luís
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Resolve conflict with spec/javascripts/api_spec.js
parent
058cca73
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
9 deletions
+15
-9
spec/javascripts/api_spec.js
spec/javascripts/api_spec.js
+15
-9
No files found.
spec/javascripts/api_spec.js
View file @
7875e343
...
...
@@ -342,7 +342,6 @@ describe('Api', () => {
});
});
<<<<<<<
HEAD
describe
(
'
ldap_groups
'
,
()
=>
{
it
(
'
calls callback on completion
'
,
done
=>
{
const
query
=
'
query
'
;
...
...
@@ -350,29 +349,36 @@ describe('Api', () => {
const
callback
=
jasmine
.
createSpy
();
const
expectedUrl
=
`
${
dummyUrlRoot
}
/api/
${
dummyApiVersion
}
/ldap/
${
provider
}
/groups.json`
;
=======
mock
.
onGet
(
expectedUrl
).
reply
(
200
,
[
{
name
:
'
test
'
,
},
]);
Api
.
ldap_groups
(
query
,
provider
,
callback
)
.
then
(
response
=>
{
expect
(
callback
).
toHaveBeenCalledWith
(
response
);
})
.
then
(
done
)
.
catch
(
done
.
fail
);
});
});
describe
(
'
commitPipelines
'
,
()
=>
{
it
(
'
fetches pipelines for a given commit
'
,
done
=>
{
const
projectId
=
'
example/foobar
'
;
const
commitSha
=
'
abc123def
'
;
const
expectedUrl
=
`
${
dummyUrlRoot
}
/
${
projectId
}
/commit/
${
commitSha
}
/pipelines`
;
>>>>>>>
upstream
/
master
mock
.
onGet
(
expectedUrl
).
reply
(
200
,
[
{
name
:
'
test
'
,
},
]);
<<<<<<<
HEAD
Api
.
ldap_groups
(
query
,
provider
,
callback
)
.
then
(
response
=>
{
expect
(
callback
).
toHaveBeenCalledWith
(
response
);
=======
Api
.
commitPipelines
(
projectId
,
commitSha
)
.
then
(({
data
})
=>
{
expect
(
data
.
length
).
toBe
(
1
);
expect
(
data
[
0
].
name
).
toBe
(
'
test
'
);
>>>>>>>
upstream
/
master
})
.
then
(
done
)
.
catch
(
done
.
fail
);
...
...
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