Fix tests comma-dangle eslint rule [MAILPOET-1028]

This commit is contained in:
stoletniy
2017-07-27 18:14:30 +03:00
committed by pavel-mailpoet
parent 66c6f52646
commit f0c59ff635
21 changed files with 267 additions and 268 deletions

View File

@@ -9,7 +9,7 @@ define([
beforeEach(function () {
global.stubChannel(EditorApplication);
global.stubConfig(EditorApplication, {
blockDefaults: {},
blockDefaults: {}
});
model = new (ImageBlock.ImageBlockModel)();
});
@@ -55,7 +55,7 @@ define([
it('triggers autosave when any of the attributes change', function () {
var mock = sinon.mock().exactly(7).withArgs('autoSave');
EditorApplication.getChannel = sinon.stub().returns({
trigger: mock,
trigger: mock
});
model.set('link', 'http://example.net');
@@ -81,11 +81,11 @@ define([
height: '2345px',
styles: {
block: {
textAlign: 'right',
},
},
textAlign: 'right'
}
}
}
},
}
});
var model = new (ImageBlock.ImageBlockModel)();
@@ -125,7 +125,7 @@ define([
model = new (ImageBlock.ImageBlockModel)({
link: 'http://example.org/somepath',
src: 'http://example.org/someimage.png',
alt: 'some alt',
alt: 'some alt'
});
view = new (ImageBlock.ImageBlockView)({model: model});
view.render();
@@ -163,7 +163,7 @@ define([
before(function () {
global.stubChannel(EditorApplication);
global.stubConfig(EditorApplication, {
blockDefaults: {},
blockDefaults: {}
});
global.stubImage(newWidth, newHeight);
model = new (ImageBlock.ImageBlockModel)();