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

28 lines
764 B
TypeScript
Raw Normal View History

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)
})
2019-08-15 13:23:56 +02: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
})
})