2019-06-20 00:20:09 +02:00
|
|
|
import { assert } from 'chai'
|
|
|
|
import { EscrowAccessSecretStoreTemplate } from '../../../src/keeper/contracts/templates'
|
|
|
|
import config from '../../config'
|
|
|
|
import TestContractHandler from '../TestContractHandler'
|
|
|
|
import { Ocean } from '../../../src/ocean/Ocean'
|
2019-03-21 02:56:58 +01:00
|
|
|
|
2019-03-07 15:52:40 +01:00
|
|
|
let condition: EscrowAccessSecretStoreTemplate
|
|
|
|
|
2019-06-20 00:20:09 +02:00
|
|
|
describe('EscrowAccessSecretStoreTemplate', () => {
|
2019-03-07 15:52:40 +01:00
|
|
|
before(async () => {
|
2019-03-21 02:56:58 +01:00
|
|
|
const ocean: Ocean = await Ocean.getInstance(config)
|
2019-03-07 15:52:40 +01:00
|
|
|
await TestContractHandler.prepareContracts()
|
2019-03-21 02:56:58 +01:00
|
|
|
condition = ocean.keeper.templates.escrowAccessSecretStoreTemplate
|
2019-03-07 15:52:40 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
// describe("#hashValues()", () => {
|
|
|
|
// it("should hash the values", async () => {
|
|
|
|
// const address = `0x${"a".repeat(40)}`
|
|
|
|
// const hash = await condition.hashValues(address, 15)
|
|
|
|
|
|
|
|
// assert.match(hash, /^0x[a-f0-9]{64}$/i)
|
|
|
|
// })
|
|
|
|
// })
|
|
|
|
})
|