Improve cold start performance
This commit is contained in:
parent
c73e35b1b6
commit
d82ce07942
39 changed files with 911 additions and 628 deletions
|
@ -23,7 +23,10 @@ describe('Message', () => {
|
|||
|
||||
function createMessage(attrs: { [key: string]: unknown }) {
|
||||
const messages = new window.Whisper.MessageCollection();
|
||||
return messages.add(attrs);
|
||||
return messages.add({
|
||||
received_at: Date.now(),
|
||||
...attrs,
|
||||
});
|
||||
}
|
||||
|
||||
before(async () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue