import {assert} from "chai" import ConfigProvider from "../../src/ConfigProvider" import ContractHandler from "../../src/keeper/ContractHandler" import config from "../config" describe("ContractHandler", () => { before(async () => { ConfigProvider.setConfig(config) await ContractHandler.prepareContracts() }) describe("#get()", () => { it("should load and get OceanToken correctly", async () => { assert(await ContractHandler.get("OceanToken")) }) it("should fail to load an unknown contract", (done) => { ContractHandler.get("OceanXXX") .catch(() => { done() }) }) }) })