Fix tests semi eslint rule [MAILPOET-1030]

This commit is contained in:
stoletniy
2017-09-04 09:28:47 +03:00
committed by pavel-mailpoet
parent ec44b84cc9
commit 998795e0e0
6 changed files with 9 additions and 10 deletions

View File

@ -14,7 +14,6 @@
"indent": 0,
"no-whitespace-before-property": 0,
"global-require": 0,
"semi": 0,
"keyword-spacing": 0,
"no-bitwise": 0,
"no-spaced-func": 0,

View File

@ -91,7 +91,7 @@ global.stubImage = function(defaultWidth, defaultHeight) {
}
});
};
}
};
testHelpers.loadTemplate('blocks/base/toolsGeneric.hbs', window, {id: 'newsletter_editor_template_tools_generic'});

View File

@ -292,12 +292,12 @@ define([
});
beforeEach(function () {
onStub = sinon.stub()
global.stubChannel(EditorApplication, {on: onStub})
onStub = sinon.stub();
global.stubChannel(EditorApplication, {on: onStub});
global.stubConfig(EditorApplication);
EditorApplication.getBlockTypeModel = sinon.stub().returns(Backbone.Model);
EditorApplication.getBlockTypeView = sinon.stub().returns(Backbone.View);
model = {set: sinon.stub()}
model = {set: sinon.stub()};
view = new (module.AutomatedLatestContentBlockView)({model: model});
});

View File

@ -265,9 +265,9 @@ define([
beforeEach(function () {
onStub = sinon.stub()
global.stubChannel(EditorApplication, {on: onStub})
model = {set: sinon.stub(), toJSON: sinon.stub()}
onStub = sinon.stub();
global.stubChannel(EditorApplication, {on: onStub});
model = {set: sinon.stub(), toJSON: sinon.stub()};
view = new (ButtonBlock.ButtonBlockView)({model: model});
view.render();
});

View File

@ -119,7 +119,7 @@ define([
var deferred = jQuery.Deferred();
deferred.resolve({});
return deferred;
}
};
var module;
spy = sinon.spy(post);
module = CommunicationInjector({

View File

@ -54,7 +54,7 @@ define([
expect(json.subject).to.equal('some subject');
expect(json.preheader).to.equal('some preheader');
expect(json).to.not.include.keys('segments', 'modified_at', 'someField');
})
});
});
});