mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
ee1dd8e30b
# Conflicts: # src/models/Config.ts # src/ocean/Ocean.ts # test/config.ts # test/keeper/ContractBase.test.ts # test/keeper/ContractHandler.test.ts # test/keeper/Keeper.test.ts # test/ocean/Account.test.ts # test/ocean/Asset.test.ts # test/ocean/Ocean.test.ts # test/ocean/Order.test.ts
41 lines
1014 B
TypeScript
41 lines
1014 B
TypeScript
import {assert} from "chai"
|
|
import ConfigProvider from "../../src/ConfigProvider"
|
|
import ContractHandler from "../../src/keeper/ContractHandler"
|
|
import Keeper from "../../src/keeper/Keeper"
|
|
import config from "../config"
|
|
|
|
let keeper: Keeper
|
|
|
|
describe("Keeper", () => {
|
|
|
|
before(async () => {
|
|
ConfigProvider.setConfig(config)
|
|
await ContractHandler.deployContracts()
|
|
keeper = await Keeper.getInstance()
|
|
})
|
|
|
|
describe("public interface", () => {
|
|
|
|
it("should have market", () => {
|
|
assert(keeper.market !== null)
|
|
})
|
|
|
|
it("should have auth", () => {
|
|
assert(keeper.auth !== 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")
|
|
})
|
|
|
|
})
|
|
})
|