fix(api): broken tests after linting fix

This commit is contained in:
Julian Tölle 2022-06-11 22:55:13 +02:00
parent e2169c9c18
commit a2ea89ff96

View file

@ -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 })