From 62e54032fb5f38bca4a614ae9a693ce396c36257 Mon Sep 17 00:00:00 2001 From: Sebastian Gerske Date: Thu, 18 Oct 2018 16:03:26 +0200 Subject: [PATCH] added reference to the secret store lib ultra-wip --- src/secretstore/SecretStore.ts | 8 ++++++++ test/secretstore/SecretStore.test.ts | 13 +++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 src/secretstore/SecretStore.ts create mode 100644 test/secretstore/SecretStore.test.ts diff --git a/src/secretstore/SecretStore.ts b/src/secretstore/SecretStore.ts new file mode 100644 index 0000000..ed9b191 --- /dev/null +++ b/src/secretstore/SecretStore.ts @@ -0,0 +1,8 @@ +import SecretStoreDocumentHandler from "@oceanprotocol/secret-store-client" + +export default class SecretStore { + + public test() { + return new SecretStoreDocumentHandler() + } +} diff --git a/test/secretstore/SecretStore.test.ts b/test/secretstore/SecretStore.test.ts new file mode 100644 index 0000000..9431542 --- /dev/null +++ b/test/secretstore/SecretStore.test.ts @@ -0,0 +1,13 @@ +import {assert} from "chai" +import SecretStore from "../../src/secretstore/SecretStore" + +describe("SecretStore", () => { + + describe("#test()", () => { + it("should return instance", () => { + + const fu = new SecretStore().test() + assert(fu) + }) + }) +})