Skip to content

Commit

Permalink
Switch order to emphasize conversation timestamps okay on iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Feb 22, 2024
1 parent 54c1413 commit 0675f93
Showing 1 changed file with 13 additions and 12 deletions.
25 changes: 13 additions & 12 deletions example/src/tests/createdAtTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -566,17 +566,18 @@ test('group and conversation createdAt has millisecond precision', async () => {
// Bob creates a conversation
const bobConversation = await bobClient.conversations.newConversation(aliceClient.address)

Check warning on line 567 in example/src/tests/createdAtTests.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `aliceClient.address` with `⏎····aliceClient.address⏎··`

console.log('Group createdAt: ' + aliceGroup.createdAt)
console.log('Conversation createdAt: ' + bobConversation.createdAt)
assert(
(! aliceGroup.createdAt.toString().endsWith('000')),
'Group createdAt should have millisecond precision, but it is ' + aliceGroup.createdAt
(! bobConversation.createdAt.toString().endsWith('000')),

Check warning on line 572 in example/src/tests/createdAtTests.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `(!·bobConversation.createdAt.toString().endsWith('000')` with `!bobConversation.createdAt.toString().endsWith('000'`
'Group createdAt should have millisecond precision, but it is ' + bobConversation.createdAt

Check warning on line 573 in example/src/tests/createdAtTests.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `⏎·····`
)
console.log('Group createdAt: ' + aliceGroup.createdAt)

assert(
(! aliceGroup.createdAt.toString().endsWith('000')),

Check warning on line 576 in example/src/tests/createdAtTests.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `(!·aliceGroup.createdAt.toString().endsWith('000')` with `!aliceGroup.createdAt.toString().endsWith('000'`
'Group createdAt should have millisecond precision, but it is ' + bobConversation.createdAt
'Group createdAt should have millisecond precision, but it is ' + aliceGroup.createdAt

Check warning on line 577 in example/src/tests/createdAtTests.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `⏎·····`
)
console.log('Conversation createdAt: ' + bobConversation.createdAt)


Check warning on line 580 in example/src/tests/createdAtTests.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `⏎··`
return true
})

Expand Down Expand Up @@ -605,16 +606,16 @@ test('message timestamp has millisecond precision', async () => {
const aliceMessage = (await aliceGroup.messages())[0]
const bobMessage = (await bobConversation.messages())[0]

assert(
(! aliceMessage.sent.toString().endsWith('000')),
'Group message sent should have millisecond precision, but it is ' + aliceMessage.sent
)
console.log('Group message sent: ' + aliceMessage.sent)

console.log('Conversation message sent: ' + bobMessage.sent)
assert(
(! bobMessage.sent.toString().endsWith('000')),

Check warning on line 612 in example/src/tests/createdAtTests.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `(!·bobMessage.sent.toString().endsWith('000')` with `!bobMessage.sent.toString().endsWith('000'`
'Conversation message sent should have millisecond precision, but it is ' + bobMessage.sent

Check warning on line 613 in example/src/tests/createdAtTests.ts

View workflow job for this annotation

GitHub Actions / lint

Insert `⏎·····`
)
console.log('Conversation message sent: ' + bobMessage.sent)
assert(
(! aliceMessage.sent.toString().endsWith('000')),
'Group message sent should have millisecond precision, but it is ' + aliceMessage.sent
)

return true
})

0 comments on commit 0675f93

Please sign in to comment.