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
419de6a9
Commit
419de6a9
authored
Jun 27, 2017
by
Luke "Jared" Bennett
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ldap_groups test to api_spec.js
parent
90d679fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
spec/javascripts/api_spec.js
spec/javascripts/api_spec.js
+17
-0
No files found.
spec/javascripts/api_spec.js
View file @
419de6a9
...
...
@@ -278,4 +278,21 @@ describe('Api', () => {
.
catch
(
done
.
fail
);
});
});
describe
(
'
ldap_groups
'
,
()
=>
{
it
(
'
calls callback on completion
'
,
(
done
)
=>
{
const
query
=
'
query
'
;
const
provider
=
'
provider
'
;
const
callback
=
jasmine
.
createSpy
();
spyOn
(
jQuery
,
'
ajax
'
).
and
.
callFake
(()
=>
$
.
Deferred
().
resolve
());
Api
.
ldap_groups
(
query
,
provider
,
callback
)
.
then
((
response
)
=>
{
expect
(
callback
).
toHaveBeenCalledWith
(
response
);
})
.
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