Skip to content

Commit

Permalink
Fix frontend tests
Browse files Browse the repository at this point in the history
  • Loading branch information
XanderVertegaal committed Nov 4, 2024
1 parent 6aca9ad commit 2af7c60
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/app/shared/utils.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ describe("moveItemInArray", () => {
expect(moveItemInArray(array, 4, 4)).toBe(array);
});

it("should return the same array if the indices are out of bounds", () => {
it("should throw an error if the indices are out of bounds", () => {
const array = ["Alice", "Bernard", "Claire", "David", "Eve"];
expect(moveItemInArray(array, -99, 99)).toBe(array);
expect(() => moveItemInArray(array, -99, 99)).toThrowError();
});
});

0 comments on commit 2af7c60

Please sign in to comment.