Skip to content

Commit

Permalink
Re-enable test
Browse files Browse the repository at this point in the history
  • Loading branch information
jurevans committed Jul 10, 2023
1 parent 2de4058 commit dac9041
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions apps/extension/src/provider/Anoma.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,16 +70,16 @@ describe("Anoma", () => {
expect(storedChains).toEqual([...Object.values(defaultChains), chain]);
});

// it("should return all accounts", async () => {
// iDBStore.set(KEYSTORE_KEY, keyStore);
// utilityStore.set(PARENT_ACCOUNT_ID_KEY, ACTIVE_ACCOUNT);
// const storedKeyStore = keyStore.map(
// ({ crypto: _crypto, owner: _owner, ...account }) => account
// );
// const storedAccounts = await anoma.accounts(chain.chainId);
//
// expect(storedAccounts).toEqual(storedKeyStore);
// });
it("should return all accounts", async () => {
iDBStore.set(KEYSTORE_KEY, keyStore);
utilityStore.set(PARENT_ACCOUNT_ID_KEY, ACTIVE_ACCOUNT);
const storedKeyStore = keyStore.map(
({ crypto: _crypto, owner: _owner, ...account }) => account
);
const storedAccounts = await anoma.accounts(chain.chainId);

expect(storedAccounts).toEqual(storedKeyStore);
});

it("should add a chain configuration", async () => {
await anoma.suggestChain(chain);
Expand Down

0 comments on commit dac9041

Please sign in to comment.