mirror of
https://github.com/oceanprotocol/ocean.js.git
synced 2024-11-26 20:39:05 +01:00
34 lines
967 B
TypeScript
34 lines
967 B
TypeScript
import { assert, spy, use } from 'chai'
|
|
import spies from 'chai-spies'
|
|
import Account from '../../../src/ocean/Account'
|
|
import { Ocean } from '../../../src/ocean/Ocean'
|
|
import config from '../config'
|
|
import { TestContractHandler } from '../../TestContractHandler'
|
|
|
|
use(spies)
|
|
|
|
let ocean: Ocean
|
|
|
|
describe('Ocean', () => {
|
|
before(async () => {
|
|
// await TestContractHandler.deployContracts()
|
|
// ocean = await Ocean.getInstance(config)
|
|
})
|
|
|
|
describe('#getInstance()', () => {
|
|
it('should get an instance of Ocean', async () => {
|
|
const oceanInstance: Ocean = await Ocean.getInstance(config)
|
|
assert(oceanInstance)
|
|
})
|
|
})
|
|
|
|
// describe('#getAccounts()', () => {
|
|
// it('should list accounts', async () => {
|
|
// const accs: Account[] = await ocean.accounts.list()
|
|
// assert(accs.length === 10)
|
|
// assert((await accs[5].getOceanBalance()) === '0')
|
|
// assert(typeof accs[0].getId() === 'string')
|
|
// })
|
|
// })
|
|
})
|