Skip to content

Commit

Permalink
fix the linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Dec 2, 2023
1 parent f558302 commit 1911367
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions example/src/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -675,19 +675,23 @@ test('canManagePreferences', async () => {
return true
})

test("is address on the XMTP network", async () => {
const alix = await Client.createRandom({ env: "local" });
const notOnNetwork = "0x0000000000000000000000000000000000000000"
test('is address on the XMTP network', async () => {
const alix = await Client.createRandom({ env: 'local' })
const notOnNetwork = '0x0000000000000000000000000000000000000000'

Check warning on line 681 in example/src/tests.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `··`
const isAlixAddressAvailable = await Client.canMessage(alix.address, { env: 'local' });
const isAddressAvailable = await Client.canMessage(notOnNetwork, { env: 'local' });
const isAlixAddressAvailable = await Client.canMessage(alix.address, {

Check warning on line 682 in example/src/tests.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
env: 'local'

Check warning on line 683 in example/src/tests.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `·` with `,`
})
const isAddressAvailable = await Client.canMessage(notOnNetwork, {

Check warning on line 685 in example/src/tests.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
env: 'local'

Check warning on line 686 in example/src/tests.ts

View workflow job for this annotation

GitHub Actions / lint

Replace `·` with `,`
})

if (!isAlixAddressAvailable) {
throw new Error('alix address should be available');
throw new Error('alix address should be available')
}

if(isAddressAvailable) {
throw new Error('address not on network should not be available');
if (isAddressAvailable) {
throw new Error('address not on network should not be available')
}

return true
Expand Down

0 comments on commit 1911367

Please sign in to comment.