@unique-nft/api
Version:
Definitely typed JS API for the Unique Network blockchain
28 lines (22 loc) • 647 B
text/typescript
import {expect, test, beforeAll, describe} from 'vitest'
// import nodetest from 'node:test'
// nodetest('test', (t) => {})
declare module 'vitest' {
export interface Suite {
// lib?: any
}
}
import {libs, init} from "../index";
beforeAll(async(context) => {
await init()
})
describe('init', function async (context) {
test.concurrent('Ethers', () => {
expect(libs.getEthers()).toBeTruthy()
})
test.concurrent('polkadot libs', () => {
expect(libs.getPolkadotApi()).toBeTruthy()
expect(libs.getPolkadotUtilCrypto()).toBeTruthy()
expect(libs.getPolkadotKeyring()).toBeTruthy()
})
})