2019-06-20 00:20:09 +02:00
|
|
|
import { assert } from 'chai'
|
2019-06-14 00:34:53 +02:00
|
|
|
|
2019-06-20 00:20:09 +02:00
|
|
|
import { config } from '../config'
|
2019-06-14 00:34:53 +02:00
|
|
|
|
2019-06-20 00:20:09 +02:00
|
|
|
import { Ocean, OceanPlatformTechStatus } from '../../src' // @oceanprotocol/squid
|
2019-06-14 00:34:53 +02:00
|
|
|
|
2019-06-20 00:20:09 +02:00
|
|
|
describe('Versions', () => {
|
2019-06-14 00:34:53 +02:00
|
|
|
let ocean: Ocean
|
|
|
|
|
|
|
|
before(async () => {
|
|
|
|
ocean = await Ocean.getInstance(config)
|
|
|
|
})
|
|
|
|
|
2020-01-27 15:59:26 +01:00
|
|
|
it('should return the versions', async () => {
|
2019-06-14 00:34:53 +02:00
|
|
|
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)
|
|
|
|
|
2019-06-20 00:20:09 +02:00
|
|
|
assert.deepEqual(versions.status, {
|
|
|
|
ok: true,
|
|
|
|
contracts: true,
|
|
|
|
network: true
|
|
|
|
})
|
2019-06-14 00:34:53 +02:00
|
|
|
})
|
|
|
|
})
|