Skip to content

Commit 7f81df9

Browse files
committed
🐞 fix: last tests
1 parent 4c1ee10 commit 7f81df9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/helpers/mergeFilters.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export function mergeFilters<
4242

4343
const limit =
4444
filterA?.limit || filterB?.limit
45-
? Math.min(filterA?.limit ?? -Infinity, filterB?.limit ?? -Infinity)
45+
? Math.min(filterA?.limit ?? Infinity, filterB?.limit ?? Infinity)
4646
: undefined;
4747

4848
const offset =

test/src/abilities.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ describe("test rumble abilities", async () => {
337337
expect((r as any).data.comments.length).toEqual(5);
338338
});
339339

340-
test("limit read amount to max value with abilities", async () => {
340+
test("limit read amount to min value with abilities", async () => {
341341
rumble.abilityBuilder.comments.allow("read").when({
342342
limit: 3,
343343
});
@@ -357,7 +357,7 @@ describe("test rumble abilities", async () => {
357357
`),
358358
});
359359

360-
expect((r as any).data.comments.length).toEqual(4);
360+
expect((r as any).data.comments.length).toEqual(3);
361361
});
362362

363363
test("error simple read with helper implementation with column restrictions", async () => {

0 commit comments

Comments
 (0)