Tests: max-len
This commit is contained in:
@ -11,7 +11,6 @@
|
|||||||
// Exceptions
|
// Exceptions
|
||||||
"func-names": 0,
|
"func-names": 0,
|
||||||
// To add
|
// To add
|
||||||
"max-len": 0,
|
|
||||||
"no-underscore-dangle": 0,
|
"no-underscore-dangle": 0,
|
||||||
"no-shadow": 0,
|
"no-shadow": 0,
|
||||||
"padded-blocks": 0
|
"padded-blocks": 0
|
||||||
|
@ -256,7 +256,8 @@ define([
|
|||||||
|
|
||||||
it('accepts displayable posts', function () {
|
it('accepts displayable posts', function () {
|
||||||
var model;
|
var model;
|
||||||
EditorApplication.getBlockTypeModel = sinon.stub().returns(ContainerBlock.ContainerBlockModel);
|
EditorApplication.getBlockTypeModel = sinon.stub()
|
||||||
|
.returns(ContainerBlock.ContainerBlockModel);
|
||||||
model = new (module.AutomatedLatestContentBlockModel)();
|
model = new (module.AutomatedLatestContentBlockModel)();
|
||||||
|
|
||||||
model.updatePosts([{
|
model.updatePosts([{
|
||||||
@ -306,7 +307,9 @@ define([
|
|||||||
global.stubConfig(EditorApplication);
|
global.stubConfig(EditorApplication);
|
||||||
EditorApplication.getBlockTypeModel = sinon.stub().returns(Backbone.Model);
|
EditorApplication.getBlockTypeModel = sinon.stub().returns(Backbone.Model);
|
||||||
EditorApplication.getBlockTypeView = sinon.stub().returns(Backbone.View);
|
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 () {
|
it('listens to the event', function () {
|
||||||
|
@ -320,7 +320,8 @@ define([
|
|||||||
global.stubConfig(EditorApplication, {
|
global.stubConfig(EditorApplication, {
|
||||||
blockDefaults: {}
|
blockDefaults: {}
|
||||||
});
|
});
|
||||||
EditorApplication.getBlockTypeModel = sinon.stub().returns(ContainerBlock.ContainerBlockModel);
|
EditorApplication.getBlockTypeModel = sinon.stub()
|
||||||
|
.returns(ContainerBlock.ContainerBlockModel);
|
||||||
model = new (PostsBlock.PostsBlockModel)();
|
model = new (PostsBlock.PostsBlockModel)();
|
||||||
view = new (PostsBlock.PostsBlockSettingsView)({ model: model });
|
view = new (PostsBlock.PostsBlockSettingsView)({ model: model });
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user