Skip to content

Commit

Permalink
fix: test (#2381)
Browse files Browse the repository at this point in the history
  • Loading branch information
reneaaron authored May 1, 2023
1 parent 8527ff5 commit 78e02de
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/app/hooks/useTips.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ jest.mock("~/app/utils", () => {
});

describe("useTips", () => {
test("should have 2 tips in chrome", async () => {
test("should have 1 tips in chrome", async () => {
tmpAccount = { id: "1", name: "LND account", alias: "" };
const { tips } = useTips();
expect(tips.length).toBe(2);
expect(tips.length).toBe(1);
const hasTopUpWallet = tips.some((tip) => tip === TIPS.TOP_UP_WALLET);
expect(hasTopUpWallet).toBe(false);
});
test("should have 3 tips with top up wallet in chrome when having alby account", async () => {
test("should have 2 tips with top up wallet in chrome when having alby account", async () => {
tmpAccount = { id: "2", name: "Alby", alias: "🐝 getalby.com" };
const { tips } = useTips();
expect(tips.length).toBe(3);
expect(tips.length).toBe(2);
const hasTopUpWallet = tips.some((tip) => tip === TIPS.TOP_UP_WALLET);
expect(hasTopUpWallet).toBe(true);
});
Expand Down

0 comments on commit 78e02de

Please sign in to comment.