Fix tests semi eslint rule [MAILPOET-1030]
This commit is contained in:
committed by
pavel-mailpoet
parent
ec44b84cc9
commit
998795e0e0
@ -14,7 +14,6 @@
|
|||||||
"indent": 0,
|
"indent": 0,
|
||||||
"no-whitespace-before-property": 0,
|
"no-whitespace-before-property": 0,
|
||||||
"global-require": 0,
|
"global-require": 0,
|
||||||
"semi": 0,
|
|
||||||
"keyword-spacing": 0,
|
"keyword-spacing": 0,
|
||||||
"no-bitwise": 0,
|
"no-bitwise": 0,
|
||||||
"no-spaced-func": 0,
|
"no-spaced-func": 0,
|
||||||
|
@ -91,7 +91,7 @@ global.stubImage = function(defaultWidth, defaultHeight) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
};
|
||||||
|
|
||||||
|
|
||||||
testHelpers.loadTemplate('blocks/base/toolsGeneric.hbs', window, {id: 'newsletter_editor_template_tools_generic'});
|
testHelpers.loadTemplate('blocks/base/toolsGeneric.hbs', window, {id: 'newsletter_editor_template_tools_generic'});
|
||||||
|
@ -292,12 +292,12 @@ define([
|
|||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
onStub = sinon.stub()
|
onStub = sinon.stub();
|
||||||
global.stubChannel(EditorApplication, {on: onStub})
|
global.stubChannel(EditorApplication, {on: onStub});
|
||||||
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);
|
||||||
model = {set: sinon.stub()}
|
model = {set: sinon.stub()};
|
||||||
view = new (module.AutomatedLatestContentBlockView)({model: model});
|
view = new (module.AutomatedLatestContentBlockView)({model: model});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -265,9 +265,9 @@ define([
|
|||||||
|
|
||||||
|
|
||||||
beforeEach(function () {
|
beforeEach(function () {
|
||||||
onStub = sinon.stub()
|
onStub = sinon.stub();
|
||||||
global.stubChannel(EditorApplication, {on: onStub})
|
global.stubChannel(EditorApplication, {on: onStub});
|
||||||
model = {set: sinon.stub(), toJSON: sinon.stub()}
|
model = {set: sinon.stub(), toJSON: sinon.stub()};
|
||||||
view = new (ButtonBlock.ButtonBlockView)({model: model});
|
view = new (ButtonBlock.ButtonBlockView)({model: model});
|
||||||
view.render();
|
view.render();
|
||||||
});
|
});
|
||||||
|
@ -119,7 +119,7 @@ define([
|
|||||||
var deferred = jQuery.Deferred();
|
var deferred = jQuery.Deferred();
|
||||||
deferred.resolve({});
|
deferred.resolve({});
|
||||||
return deferred;
|
return deferred;
|
||||||
}
|
};
|
||||||
var module;
|
var module;
|
||||||
spy = sinon.spy(post);
|
spy = sinon.spy(post);
|
||||||
module = CommunicationInjector({
|
module = CommunicationInjector({
|
||||||
|
@ -54,7 +54,7 @@ define([
|
|||||||
expect(json.subject).to.equal('some subject');
|
expect(json.subject).to.equal('some subject');
|
||||||
expect(json.preheader).to.equal('some preheader');
|
expect(json.preheader).to.equal('some preheader');
|
||||||
expect(json).to.not.include.keys('segments', 'modified_at', 'someField');
|
expect(json).to.not.include.keys('segments', 'modified_at', 'someField');
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user