mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
25 lines
720 B
TypeScript
25 lines
720 B
TypeScript
import { assert } from "chai"
|
|
|
|
import { config } from "../config"
|
|
|
|
import { Ocean, OceanPlatformTechStatus } from "../../src" // @oceanprotocol/squid
|
|
|
|
describe("Versions", () => {
|
|
|
|
let ocean: Ocean
|
|
|
|
before(async () => {
|
|
ocean = await Ocean.getInstance(config)
|
|
})
|
|
|
|
it("should returns the versions", async () => {
|
|
const versions = await ocean.versions.get()
|
|
|
|
assert.equal(versions.aquarius.status, OceanPlatformTechStatus.Working)
|
|
assert.equal(versions.brizo.status, OceanPlatformTechStatus.Working)
|
|
assert.equal(versions.squid.status, OceanPlatformTechStatus.Working)
|
|
|
|
assert.deepEqual(versions.status, {ok: true, contracts: true, network: true})
|
|
})
|
|
})
|