Skip to content

Commit

Permalink
fix: store usage on storage module and timeout issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Justkant committed Oct 31, 2023
1 parent 058882d commit fac2dd0
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/simulator/tests/simulator.spec.ts
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -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);
Expand All @@ -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);
Expand Down Expand Up @@ -280,7 +280,7 @@ describe("Simulator", () => {
);
await expect(client.storage.get(key)).rejects.toThrow("not implemented");
});
}); */
});

describe("transaction.sign", () => {
const transaction = {
Expand Down

0 comments on commit fac2dd0

Please sign in to comment.