Skip to content

Commit 055743e

Browse files
Update apps/web/tests/payouts/index.test.ts
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
1 parent aa00b48 commit 055743e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/web/tests/payouts/index.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ describe("GET /payouts", async () => {
4848

4949
expect(status).toEqual(200);
5050
expect(Array.isArray(data)).toBe(true);
51-
expect(data.some((payout) => payout.status === "processed")).toBe(true);
51+
expect(data.length).toBeGreaterThan(0);
52+
expect(data.every((payout) => payout.status === "processed")).toBe(true);
5253
});
5354

5455
test("filters by partnerId", async () => {

0 commit comments

Comments
 (0)