BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
5e4d02ba
Unverified
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
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
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