1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
This commit is contained in:
alexcos20 2020-04-08 12:26:48 +03:00
parent 0b7eb1c067
commit 920feb0fba

View File

@ -40,10 +40,10 @@ describe('Compute', () => {
;[account] = await ocean.accounts.list()
})
it('should authenticate the consumer account', async () => {
/* it('should authenticate the consumer account', async () => {
await account.authenticate()
})
*/
it('should publish a dataset with a compute service object', async () => {
const stepsAsset = []
computeService = await ocean.compute.createComputeServiceAttributes(
@ -119,17 +119,17 @@ describe('Compute', () => {
assert.equal(response.status, ComputeJobStatus.Started)
jobId = response.jobId
})
it('should get status of a compute job', async () => {
const response = await ocean.compute.status(account, agreementId, jobId)
assert.equal(response[0].jobId, jobId)
})
it('should get status of a compute job', async () => {
const response = await ocean.compute.status(account, agreementId, jobId)
assert.equal(response[0].jobId, jobId)
})
it('should get status of all compute jobs for an address', async () => {
const response = await ocean.compute.status(account, undefined, undefined)
assert.isAbove(response.length, 0)
const response = await ocean.compute.status(account, undefined, undefined)
assert.isAbove(response.length, 0)
})
})