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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
5e4d02ba
Commit
5e4d02ba
authored
Apr 13, 2018
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix tests in comment_type_toggle_spec.js
parent
8a713b37
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
spec/javascripts/comment_type_toggle_spec.js
spec/javascripts/comment_type_toggle_spec.js
+2
-3
No files found.
spec/javascripts/comment_type_toggle_spec.js
View file @
5e4d02ba
import
CommentTypeToggle
from
'
~/comment_type_toggle
'
;
import
*
as
dropLabSrc
from
'
~/droplab/drop_lab
'
;
import
InputSetter
from
'
~/droplab/plugins/input_setter
'
;
describe
(
'
CommentTypeToggle
'
,
function
()
{
...
...
@@ -59,14 +58,14 @@ describe('CommentTypeToggle', function () {
this
.
droplab
=
jasmine
.
createSpyObj
(
'
droplab
'
,
[
'
init
'
]);
spyOn
(
dropLabSrc
,
'
default
'
).
and
.
returnValue
(
this
.
droplab
);
this
.
droplabConstructor
=
spyOnDependency
(
CommentTypeToggle
,
'
DropLab
'
).
and
.
returnValue
(
this
.
droplab
);
spyOn
(
this
.
commentTypeToggle
,
'
setConfig
'
).
and
.
returnValue
(
this
.
config
);
CommentTypeToggle
.
prototype
.
initDroplab
.
call
(
this
.
commentTypeToggle
);
});
it
(
'
should instantiate a DropLab instance
'
,
function
()
{
expect
(
dropLabSrc
.
default
).
toHaveBeenCalled
();
expect
(
this
.
droplabConstructor
).
toHaveBeenCalled
();
});
it
(
'
should set .droplab
'
,
function
()
{
...
...
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