first blockchain functions tests - addresses.ts type testing
This commit is contained in:
parent
7efb10bfde
commit
d5553823bc
21
src/blockchain/__tests__/addresses.spec.ts
Normal file
21
src/blockchain/__tests__/addresses.spec.ts
Normal file
@ -0,0 +1,21 @@
|
||||
import { assertType, expectTypeOf } from 'vitest'
|
||||
import {
|
||||
getTokenAddress,
|
||||
getP2PixAddress,
|
||||
getProviderUrl,
|
||||
isPossibleNetwork,
|
||||
possibleChains,
|
||||
network2Chain,
|
||||
} from '../addresses'
|
||||
|
||||
test("My addresses.ts types work properly", () =>{
|
||||
|
||||
expectTypeOf(getTokenAddress).toBeFunction()
|
||||
expectTypeOf(getP2PixAddress).toBeFunction()
|
||||
expectTypeOf(getProviderUrl).toBeFunction()
|
||||
expectTypeOf(isPossibleNetwork).toBeFunction()
|
||||
|
||||
expectTypeOf(possibleChains).toBeObject()
|
||||
expectTypeOf(network2Chain).toBeObject()
|
||||
|
||||
})
|
Loading…
x
Reference in New Issue
Block a user