mirror of
https://github.com/haveno-dex/haveno-ts.git
synced 2025-08-06 05:24:15 -04:00
more spacing
This commit is contained in:
parent
1777192d23
commit
e57a259d55
1 changed files with 2 additions and 2 deletions
|
@ -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]);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue