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
0477a37c
Commit
0477a37c
authored
Apr 02, 2018
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for Conflict in api_spec.js
parent
436891da
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
14 deletions
+7
-14
spec/javascripts/api_spec.js
spec/javascripts/api_spec.js
+7
-14
No files found.
spec/javascripts/api_spec.js
View file @
0477a37c
...
...
@@ -206,13 +206,8 @@ describe('Api', () => {
});
});
<<<<<<<
HEAD
it
(
'
creates a new group label
'
,
(
done
)
=>
{
const
namespace
=
'
some namespace
'
;
=======
it
(
'
creates a group label
'
,
done
=>
{
const
namespace
=
'
group/subgroup
'
;
>>>>>>>
upstream
/
master
const
labelData
=
{
some
:
'
data
'
};
const
expectedUrl
=
Api
.
buildUrl
(
Api
.
groupLabelsPath
).
replace
(
'
:namespace_path
'
,
namespace
);
const
expectedData
=
{
...
...
@@ -229,11 +224,7 @@ describe('Api', () => {
];
});
<<<<<<<
HEAD
Api
.
newLabel
(
namespace
,
null
,
labelData
,
(
response
)
=>
{
=======
Api
.
newLabel
(
namespace
,
undefined
,
labelData
,
response
=>
{
>>>>>>>
upstream
/
master
expect
(
response
.
name
).
toBe
(
'
test
'
);
done
();
});
...
...
@@ -352,18 +343,20 @@ describe('Api', () => {
});
describe
(
'
ldap_groups
'
,
()
=>
{
it
(
'
calls callback on completion
'
,
(
done
)
=>
{
it
(
'
calls callback on completion
'
,
done
=>
{
const
query
=
'
query
'
;
const
provider
=
'
provider
'
;
const
callback
=
jasmine
.
createSpy
();
const
expectedUrl
=
`
${
dummyUrlRoot
}
/api/
${
dummyApiVersion
}
/ldap/
${
provider
}
/groups.json`
;
mock
.
onGet
(
expectedUrl
).
reply
(
200
,
[{
name
:
'
test
'
,
}]);
mock
.
onGet
(
expectedUrl
).
reply
(
200
,
[
{
name
:
'
test
'
,
},
]);
Api
.
ldap_groups
(
query
,
provider
,
callback
)
.
then
(
(
response
)
=>
{
.
then
(
response
=>
{
expect
(
callback
).
toHaveBeenCalledWith
(
response
);
})
.
then
(
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