Tests: max-len
This commit is contained in:
@ -11,7 +11,6 @@
|
||||
// Exceptions
|
||||
"func-names": 0,
|
||||
// To add
|
||||
"max-len": 0,
|
||||
"no-underscore-dangle": 0,
|
||||
"no-shadow": 0,
|
||||
"padded-blocks": 0
|
||||
|
@ -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 () {
|
||||
|
@ -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 });
|
||||
});
|
||||
|
Reference in New Issue
Block a user