more spacing

This commit is contained in:
duriancrepe 2022-03-08 09:01:10 -08:00
parent 1777192d23
commit e57a259d55

View file

@ -1844,7 +1844,7 @@ async function testTradeChat(tradeId: string, alice: HavenoDaemon, bob: HavenoDa
await wait(TestConfig.maxTimePeerNoticeMs); await wait(TestConfig.maxTimePeerNoticeMs);
messages = await bob.getChatMessages(tradeId); messages = await bob.getChatMessages(tradeId);
let offset = 3; // 3 existing messages let offset = 3; // 3 existing messages
expect(messages.length).toEqual(offset+msgs.length); expect(messages.length).toEqual(offset + msgs.length);
expect(messages[0].getIsSystemMessage()).toEqual(true); expect(messages[0].getIsSystemMessage()).toEqual(true);
expect(messages[1].getMessage()).toEqual(aliceMsg); expect(messages[1].getMessage()).toEqual(aliceMsg);
expect(messages[2].getMessage()).toEqual(bobMsg); expect(messages[2].getMessage()).toEqual(bobMsg);
@ -1854,7 +1854,7 @@ async function testTradeChat(tradeId: string, alice: HavenoDaemon, bob: HavenoDa
chatNotifications = getNotifications(bobNotifications, NotificationMessage.NotificationType.CHAT_MESSAGE); chatNotifications = getNotifications(bobNotifications, NotificationMessage.NotificationType.CHAT_MESSAGE);
offset = 1; // 1 existing notification offset = 1; // 1 existing notification
expect(chatNotifications.length).toBe(offset+msgs.length); expect(chatNotifications.length).toBe(offset + msgs.length);
expect(chatNotifications[0].getChatMessage()?.getMessage()).toEqual(aliceMsg); expect(chatNotifications[0].getChatMessage()?.getMessage()).toEqual(aliceMsg);
for (var i = 0; i < msgs.length; i++) { for (var i = 0; i < msgs.length; i++) {
expect(chatNotifications[i + offset].getChatMessage()?.getMessage()).toEqual(msgs[i]); expect(chatNotifications[i + offset].getChatMessage()?.getMessage()).toEqual(msgs[i]);