1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
squid-js/test/unit/keeper/Keeper.test.ts
2020-01-31 00:15:55 +01:00

33 lines
915 B
TypeScript

import { assert } from 'chai'
import config from '../config'
import TestContractHandler from './TestContractHandler'
import Keeper from '../../src/keeper/Keeper'
import { Ocean } from '../../src/ocean/Ocean'
let keeper: Keeper
describe('Keeper', () => {
before(async () => {
await TestContractHandler.prepareContracts()
const ocean = await Ocean.getInstance(config)
keeper = ocean.keeper
})
describe('public interface', () => {
it('should have dispenser', () => {
assert(keeper.dispenser !== null)
})
it('should have token', () => {
assert(keeper.token !== null)
})
})
describe('#getNetworkName()', () => {
it('should get development as default', async () => {
const networkName: string = await keeper.getNetworkName()
assert(networkName === 'Development')
})
})
})