fix tests in comment_type_toggle_spec.js

This commit is contained in:
Mike Greiling 2018-04-13 16:14:43 -05:00
parent 8a713b37cb
commit 5e4d02ba83
No known key found for this signature in database
GPG key ID: 0303DF507FA67596

View file

@ -1,5 +1,4 @@
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 () {