Skip to content

Commit

Permalink
eslint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronvoell committed Apr 5, 2024
1 parent f12e45d commit 059c25b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 9 deletions.
22 changes: 15 additions & 7 deletions example/src/tests/createdAtTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ test('group createdAt matches listGroups', async () => {
assert(
alixGroups[second].createdAt === boGroup.createdAt,
'Second group returned from listGroups shows ' +
alixGroups[second].createdAt +
alixGroups[second].createdAt +
' but should be ' +
boGroup.createdAt
)
Expand Down Expand Up @@ -99,7 +99,7 @@ test('group createdAt matches listAll', async () => {
assert(
alixGroups[first].createdAt === alixGroup.createdAt,
'alix group returned from listGroups shows createdAt ' +
alixGroups[1].createdAt +
alixGroups[1].createdAt +
' but should be ' +
alixGroup.createdAt
)
Expand All @@ -108,7 +108,7 @@ test('group createdAt matches listAll', async () => {
assert(
alixGroups[second].createdAt === boGroup.createdAt,
'bo group returned from listGroups shows createdAt ' +
alixGroups[0].createdAt +
alixGroups[0].createdAt +
' but should be ' +
boGroup.createdAt
)
Expand Down Expand Up @@ -233,7 +233,9 @@ test('conversation createdAt matches list', async () => {
const alixConversation = await alix.conversations.newConversation(bo.address)

// bo creates a conversation
const caroConversation = await caro.conversations.newConversation(alix.address)
const caroConversation = await caro.conversations.newConversation(
alix.address
)

// Fetch conversations using list() method
const alixConversations = await alix.conversations.list()
Expand Down Expand Up @@ -274,7 +276,9 @@ test('conversation createdAt matches listAll', async () => {
const alixConversation = await alix.conversations.newConversation(bo.address)

// bo creates a group
const caroConversation = await caro.conversations.newConversation(alix.address)
const caroConversation = await caro.conversations.newConversation(
alix.address
)

// Fetch conversations using list() method
const alixConversations = await alix.conversations.listAll()
Expand Down Expand Up @@ -324,7 +328,9 @@ test('conversation createdAt matches stream', async () => {
await delayToPropogate()

// bo creates a conversation
const caroConversation = await caro.conversations.newConversation(alix.address)
const caroConversation = await caro.conversations.newConversation(
alix.address
)

await delayToPropogate()

Expand Down Expand Up @@ -381,7 +387,9 @@ test('conversation createdAt matches streamAll', async () => {
await delayToPropogate()

// bo creates a group
const caroConversation = await caro.conversations.newConversation(alix.address)
const caroConversation = await caro.conversations.newConversation(
alix.address
)

await delayToPropogate()

Expand Down
4 changes: 2 additions & 2 deletions example/src/tests/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,9 @@ test('can load 1995 conversations from dev network "2k lens convos" account', as
xmtpClient.address === '0x209fAEc92D9B072f3E03d6115002d6652ef563cd',
'Address: ' + xmtpClient.address
)
let start = Date.now()
const start = Date.now()
const conversations = await xmtpClient.conversations.list()
let end = Date.now()
const end = Date.now()
console.log(
`Loaded ${conversations.length} conversations in ${end - start}ms`
)
Expand Down

0 comments on commit 059c25b

Please sign in to comment.