Tests: max-len

This commit is contained in:
Amine Ben hammou
2017-10-25 12:16:32 +00:00
parent b31e8ce5f2
commit 2ac32484e1
3 changed files with 7 additions and 4 deletions

View File

@ -11,7 +11,6 @@
// Exceptions
"func-names": 0,
// To add
"max-len": 0,
"no-underscore-dangle": 0,
"no-shadow": 0,
"padded-blocks": 0

View File

@ -256,7 +256,8 @@ define([
it('accepts displayable posts', function () {
var model;
EditorApplication.getBlockTypeModel = sinon.stub().returns(ContainerBlock.ContainerBlockModel);
EditorApplication.getBlockTypeModel = sinon.stub()
.returns(ContainerBlock.ContainerBlockModel);
model = new (module.AutomatedLatestContentBlockModel)();
model.updatePosts([{
@ -306,7 +307,9 @@ define([
global.stubConfig(EditorApplication);
EditorApplication.getBlockTypeModel = sinon.stub().returns(Backbone.Model);
EditorApplication.getBlockTypeView = sinon.stub().returns(Backbone.View);
view = new (AutomatedLatestContentBlock.AutomatedLatestContentBlockView)({ model: { set: sinon.stub() } });
view = new (AutomatedLatestContentBlock.AutomatedLatestContentBlockView)({
model: { set: sinon.stub() }
});
});
it('listens to the event', function () {

View File

@ -320,7 +320,8 @@ define([
global.stubConfig(EditorApplication, {
blockDefaults: {}
});
EditorApplication.getBlockTypeModel = sinon.stub().returns(ContainerBlock.ContainerBlockModel);
EditorApplication.getBlockTypeModel = sinon.stub()
.returns(ContainerBlock.ContainerBlockModel);
model = new (PostsBlock.PostsBlockModel)();
view = new (PostsBlock.PostsBlockSettingsView)({ model: model });
});