mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-27 11:53:23 +01:00
Format all source code using Prettier
This commit is contained in:
@@ -1,16 +1,22 @@
|
||||
describe('GroupUpdateView', function() {
|
||||
it('should show new group members', function() {
|
||||
var view = new Whisper.GroupUpdateView({model: {joined: ['Alice', 'Bob']}}).render();
|
||||
var view = new Whisper.GroupUpdateView({
|
||||
model: { joined: ['Alice', 'Bob'] },
|
||||
}).render();
|
||||
assert.match(view.$el.text(), /Alice.*Bob.*joined the group/);
|
||||
});
|
||||
|
||||
it('should note updates to the title', function() {
|
||||
var view = new Whisper.GroupUpdateView({model: {name: 'New name'}}).render();
|
||||
var view = new Whisper.GroupUpdateView({
|
||||
model: { name: 'New name' },
|
||||
}).render();
|
||||
assert.match(view.$el.text(), /Title is now 'New name'/);
|
||||
});
|
||||
|
||||
it('should say "Updated the group"', function() {
|
||||
var view = new Whisper.GroupUpdateView({model: {avatar: 'New avatar'}}).render();
|
||||
var view = new Whisper.GroupUpdateView({
|
||||
model: { avatar: 'New avatar' },
|
||||
}).render();
|
||||
assert.match(view.$el.text(), /Updated the group/);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user