1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00
squid-js/test/unit/__mocks__/SecretStore.mock.ts

14 lines
359 B
TypeScript
Raw Normal View History

2019-06-20 00:20:09 +02:00
import SecretStore from '@oceanprotocol/secret-store-client'
2018-10-26 13:37:09 +02:00
export default class SecretStoreMock extends SecretStore {
public async encryptDocument(documentId, document: any) {
2019-06-20 00:20:09 +02:00
return '0x283asdgahd1t371t23h'
2018-10-26 13:37:09 +02:00
}
public async decryptDocument(documentId, encryptedDocument: any) {
return {
2019-06-20 00:20:09 +02:00
doc: 'test'
2018-10-26 13:37:09 +02:00
}
}
}