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
2020-01-31 00:15:55 +01:00

14 lines
359 B
TypeScript

import SecretStore from '@oceanprotocol/secret-store-client'
export default class SecretStoreMock extends SecretStore {
public async encryptDocument(documentId, document: any) {
return '0x283asdgahd1t371t23h'
}
public async decryptDocument(documentId, encryptedDocument: any) {
return {
doc: 'test'
}
}
}