2018-10-16 14:56:18 +02:00
|
|
|
import * as assert from "assert"
|
|
|
|
import ConfigProvider from "../../src/ConfigProvider"
|
|
|
|
import ContractHandler from "../../src/keeper/ContractHandler"
|
|
|
|
import config from "../config"
|
|
|
|
|
|
|
|
before(async () => {
|
|
|
|
ConfigProvider.configure(config)
|
|
|
|
await ContractHandler.deployContracts()
|
|
|
|
})
|
|
|
|
|
|
|
|
describe("ContractHandler", () => {
|
|
|
|
|
|
|
|
describe("#get()", () => {
|
|
|
|
|
|
|
|
it("should load and get OceanToken correctly", async () => {
|
2018-10-17 18:24:01 +02:00
|
|
|
assert(await ContractHandler.get("OceanToken") !== null)
|
2018-10-16 14:56:18 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|