Format all source code using Prettier

This commit is contained in:
Daniel Gasienica
2018-04-27 17:25:04 -04:00
parent b4dee3f30b
commit 1dd87ad197
149 changed files with 17847 additions and 15439 deletions
+7 -5
View File
@@ -3,8 +3,8 @@ describe('Whisper.View', function() {
var viewClass = Whisper.View.extend({
template: '<div>{{ variable }}</div>',
render_attributes: {
variable: 'value'
}
variable: 'value',
},
});
var view = new viewClass();
@@ -13,7 +13,7 @@ describe('Whisper.View', function() {
});
it('renders a template with no render_attributes', function() {
var viewClass = Whisper.View.extend({
template: '<div>static text</div>'
template: '<div>static text</div>',
});
var view = new viewClass();
@@ -22,10 +22,12 @@ describe('Whisper.View', function() {
});
it('renders a template function with render_attributes function', function() {
var viewClass = Whisper.View.extend({
template: function() { return '<div>{{ variable }}</div>'; },
template: function() {
return '<div>{{ variable }}</div>';
},
render_attributes: function() {
return { variable: 'value' };
}
},
});
var view = new viewClass();
view.render();