Skip to content

Commit

Permalink
🧪 fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vikiival committed Apr 16, 2024
1 parent 4445aa4 commit 67b21a7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion sub-api/test/dummy.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export enum Endpoint {
MOVR = 'wss://moonriver.public.blastapi.io',
KSM = 'wss://kusama-rpc.polkadot.io',
AHP = 'wss://polkadot-asset-hub-rpc.polkadot.io',
KSM = 'wss://kusama.api.onfinality.io/public-ws',
LOCAL = 'ws://127.0.0.1:9944',
}
4 changes: 2 additions & 2 deletions sub-api/test/factory.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ describe('Factory instance', () => {
})

it('Should create a meaningfull connection via prefix', async () => {
const api = await Factory.useApiInstance('ksm')
const api = await Factory.useApiInstance('ahp')
const ss58 = api.consts.system.ss58Prefix.toString()
expect(ss58).eq('2')
expect(ss58).eq('0')
api.disconnect()
})
})
1 change: 1 addition & 0 deletions sub-api/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ describe('SUB API', () => {
const api = await useApi(url)
const ss58 = api.consts.system.ss58Prefix.toString()
expect(ss58).eq('1285')
api.disconnect()
})
})

0 comments on commit 67b21a7

Please sign in to comment.