From fac2dd08a7baa00ea4935cb9831fba4ce2f896a1 Mon Sep 17 00:00:00 2001 From: Kant Date: Tue, 31 Oct 2023 10:47:57 +0100 Subject: [PATCH] fix: store usage on storage module and timeout issue --- packages/simulator/tests/simulator.spec.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/packages/simulator/tests/simulator.spec.ts b/packages/simulator/tests/simulator.spec.ts index 3cb2ee3b..74211291 100644 --- a/packages/simulator/tests/simulator.spec.ts +++ b/packages/simulator/tests/simulator.spec.ts @@ -1,6 +1,6 @@ import { WalletAPIClient } from "@ledgerhq/wallet-api-client"; -import { getSimulatorTransport, profiles } from "../src"; import BigNumber from "bignumber.js"; +import { getSimulatorTransport, profiles } from "../src"; const profileWithNoPermissions = { ...profiles.STANDARD, @@ -235,7 +235,7 @@ describe("Simulator", () => { }); }); - /* describe("storage.get & storage.set", () => { + describe("storage.get & storage.set", () => { it("should set and get a value", async () => { // GIVEN const transport = getSimulatorTransport(profiles.STANDARD); @@ -244,8 +244,8 @@ describe("Simulator", () => { // WHEN const key = "testKey"; const value = "testValue"; - await client.storage.set(key, value, "ut"); - const retrievedValue = await client.storage.get(key, "ut"); + void client.storage.set(key, value); // TODO fix me when we can await + const retrievedValue = await client.storage.get(key); // THEN expect(retrievedValue).toBe(value); @@ -280,7 +280,7 @@ describe("Simulator", () => { ); await expect(client.storage.get(key)).rejects.toThrow("not implemented"); }); - }); */ + }); describe("transaction.sign", () => { const transaction = {