Tests space-before-function-paren
This commit is contained in:
@@ -4,11 +4,11 @@ const sinon = global.sinon;
|
||||
define([
|
||||
'newsletter_editor/App',
|
||||
'newsletter_editor/components/styles'
|
||||
], function(App, StylesComponent) {
|
||||
], function (App, StylesComponent) {
|
||||
var EditorApplication = App;
|
||||
|
||||
describe('Styles', function () {
|
||||
it('loads and stores globally available styles', function() {
|
||||
it('loads and stores globally available styles', function () {
|
||||
var model;
|
||||
StylesComponent.setGlobalStyles({
|
||||
testStyle: 'testValue'
|
||||
@@ -17,15 +17,15 @@ define([
|
||||
expect(model.get('testStyle')).to.equal('testValue');
|
||||
});
|
||||
|
||||
describe('model', function() {
|
||||
describe('model', function () {
|
||||
var model;
|
||||
beforeEach(function() {
|
||||
beforeEach(function () {
|
||||
model = new (StylesComponent.StylesModel)();
|
||||
});
|
||||
|
||||
it('triggers autoSave when changed', function() {
|
||||
var mock = sinon.mock({ trigger: function() {}}).expects('trigger').once().withExactArgs('autoSave');
|
||||
EditorApplication.getChannel = function() {
|
||||
it('triggers autoSave when changed', function () {
|
||||
var mock = sinon.mock({ trigger: function () {}}).expects('trigger').once().withExactArgs('autoSave');
|
||||
EditorApplication.getChannel = function () {
|
||||
return {
|
||||
trigger: mock
|
||||
};
|
||||
@@ -35,15 +35,15 @@ define([
|
||||
});
|
||||
});
|
||||
|
||||
describe('view', function() {
|
||||
describe('view', function () {
|
||||
var model;
|
||||
var view;
|
||||
beforeEach(function() {
|
||||
beforeEach(function () {
|
||||
model = new (StylesComponent.StylesModel)();
|
||||
view = new (StylesComponent.StylesView)({ model: model });
|
||||
});
|
||||
|
||||
it('renders', function() {
|
||||
it('renders', function () {
|
||||
expect(view.render).to.not.throw();
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user