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

25 lines
882 B
TypeScript
Raw Normal View History

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-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 () => {
const ocean: Ocean = await Ocean.getInstance(config)
2019-03-07 15:52:40 +01:00
await TestContractHandler.prepareContracts()
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)
// })
// })
})