mirror of
https://github.com/apricote/Listory.git
synced 2026-01-13 21:21:02 +00:00
fix(api): broken tests after linting fix
This commit is contained in:
parent
e2169c9c18
commit
a2ea89ff96
1 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ describe("Listens Controller", () => {
|
||||||
|
|
||||||
it("returns the listens", async () => {
|
it("returns the listens", async () => {
|
||||||
await expect(
|
await expect(
|
||||||
controller.getRecentlyPlayed(1, 10, filter, user)
|
controller.getRecentlyPlayed(filter, user, 1, 10)
|
||||||
).resolves.toEqual(listens);
|
).resolves.toEqual(listens);
|
||||||
|
|
||||||
expect(listensService.getListens).toHaveBeenCalledTimes(1);
|
expect(listensService.getListens).toHaveBeenCalledTimes(1);
|
||||||
|
|
@ -54,7 +54,7 @@ describe("Listens Controller", () => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it("clamps the limit to 100", async () => {
|
it("clamps the limit to 100", async () => {
|
||||||
await controller.getRecentlyPlayed(1, 1000, filter, user);
|
await controller.getRecentlyPlayed(filter, user, 1, 1000);
|
||||||
|
|
||||||
expect(listensService.getListens).toHaveBeenCalledWith(
|
expect(listensService.getListens).toHaveBeenCalledWith(
|
||||||
expect.objectContaining({ limit: 100 })
|
expect.objectContaining({ limit: 100 })
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue