Fix tests
This commit is contained in:
parent
d1c5b6da7a
commit
bf22da209f
5 changed files with 31 additions and 15 deletions
|
@ -35,7 +35,7 @@
|
|||
model: Message,
|
||||
database: Whisper.Database,
|
||||
storeName: 'messages',
|
||||
comparator: function(m) { return -m.get('timestamp'); },
|
||||
comparator: 'timestamp',
|
||||
destroyAll: function () {
|
||||
return Promise.all(this.models.map(function(m) {
|
||||
return new Promise(function(resolve, reject) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue