Skip to content

Commit

Permalink
fix: cr comments
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszjasiuk committed Dec 27, 2024
1 parent 6138a70 commit fe3723d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
3 changes: 0 additions & 3 deletions apps/namadillo/src/atoms/balance/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,6 @@ export const fetchShieldedBalance = async (
addresses: string[],
chainId: string
): Promise<Balance> => {
// TODO mock shielded balance
// return await mockShieldedBalance(viewingKey);

const sdk = await getSdkInstance();
return await sdk.rpc.queryBalance(viewingKey.key, addresses, chainId);
};
Expand Down
7 changes: 7 additions & 0 deletions apps/namadillo/src/setupTests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@ jest.mock("atoms/integrations", () => ({
jest.mock("atoms/integrations/atoms", () => ({
localnetConfigAtom: atom({ data: undefined }),
}));

// Because we run tests in node environment, we need to mock inline-init as node-init
jest.mock(
"@namada/sdk/inline-init",
() => () =>
Promise.resolve(jest.requireActual("@namada/sdk/node-init").default())
);

0 comments on commit fe3723d

Please sign in to comment.