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

28 lines
767 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 return 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
})
})
})