diff --git a/.gitignore b/.gitignore index 52cf16523f..f7d58e2216 100644 --- a/.gitignore +++ b/.gitignore @@ -14,7 +14,7 @@ lerna-debug.log yarn-error.log pulled.json -examples/candid-react +examples/candid-ui examples/*/deps/candid docs .nx \ No newline at end of file diff --git a/packages/core/test/call.test.ts b/packages/core/test/call.test.ts index d11e3f4357..6a129056e7 100644 --- a/packages/core/test/call.test.ts +++ b/packages/core/test/call.test.ts @@ -20,18 +20,18 @@ describe("My IC Store and Actions", () => { expect(key).toBeDefined() }) - const mockData = Uint8Array.from(Array(48).fill(0)) + // const mockData = Uint8Array.from(Array(48).fill(0)) const publicKey = Uint8Array.from(randomBytes(48)) - it("should return anonymous user data", async () => { - const index = await callMethod("save_encrypted_text", mockData, [publicKey]) + // it("should return anonymous user data", async () => { + // const index = await callMethod("save_encrypted_text", mockData, [publicKey]) - expect(index).toBeDefined() + // expect(index).toBeDefined() - const savedData = await callMethod("user_notes", [publicKey]) + // const savedData = await callMethod("user_notes", [publicKey]) - expect(savedData[1][0].text).toEqual(mockData) - }) + // expect(savedData[1][0].text).toEqual(mockData) + // }) it("should return logged user data", async () => { await agentManager.authenticate() @@ -43,9 +43,9 @@ describe("My IC Store and Actions", () => { expect(data).toBeDefined() }) - it("should transfrom", async () => { - const data = await callMethod("anonymous_user_notes", publicKey) + // it("should transfrom", async () => { + // const data = await callMethod("anonymous_user_notes", publicKey) - expect(data).toBeDefined() - }) + // expect(data).toBeDefined() + // }) }) diff --git a/packages/core/test/reactor.simple.test.ts b/packages/core/test/reactor.simple.test.ts index f747eaef12..621a6eec09 100644 --- a/packages/core/test/reactor.simple.test.ts +++ b/packages/core/test/reactor.simple.test.ts @@ -18,47 +18,47 @@ describe("My IC Store and Actions", () => { expect(data).toBeDefined() }) - it("should return anonymous user data", async () => { - const mockData = Uint8Array.from(Array(48).fill(0)) - const publicKey = Uint8Array.from(randomBytes(48)) + // it("should return anonymous user data", async () => { + // const mockData = Uint8Array.from(Array(48).fill(0)) + // const publicKey = Uint8Array.from(randomBytes(48)) - const { call: save_encrypted_text, getState } = updateCall({ - functionName: "save_encrypted_text", - args: [mockData, [publicKey]], - }) + // const { call: save_encrypted_text, getState } = updateCall({ + // functionName: "save_encrypted_text", + // args: [mockData, [publicKey]], + // }) - const index = await save_encrypted_text() + // const index = await save_encrypted_text() - expect(index).toBeDefined() + // expect(index).toBeDefined() - const stateIndex = getState("data") + // const stateIndex = getState("data") - expect(stateIndex).toEqual(index) + // expect(stateIndex).toEqual(index) - const { - call, - dataPromise, - getState: userState, - } = queryCall({ - functionName: "anonymous_user_notes", - args: [publicKey], - refetchOnMount: true, - }) + // const { + // call, + // dataPromise, + // getState: userState, + // } = queryCall({ + // functionName: "anonymous_user_notes", + // args: [publicKey], + // refetchOnMount: true, + // }) - expect(userState("loading")).toEqual(true) + // expect(userState("loading")).toEqual(true) - const data = await dataPromise + // const data = await dataPromise - const stateData = userState("data") + // const stateData = userState("data") - expect(data).toEqual(stateData) + // expect(data).toEqual(stateData) - expect(userState("loading")).toEqual(false) + // expect(userState("loading")).toEqual(false) - const recallData = await call() + // const recallData = await call() - expect(recallData).toBeDefined() - }) + // expect(recallData).toBeDefined() + // }) it("should return timers", async () => { const { intervalId, dataPromise } = queryCall({