mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-05-08 08:58:38 +01:00
Format all source code using Prettier
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user