Skip to content

Commit

Permalink
add missing test for addReview
Browse files Browse the repository at this point in the history
  • Loading branch information
Octowl committed Nov 5, 2024
1 parent 5a82d27 commit f14ad35
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions challenge.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ describe("🌶️🌶️🌶️ Challenge", () => {
const { reviewer, comment } = newReview;
const updatedBook = addReview(book, reviewer, comment);
expect(updatedBook.reviews).toContainEqual(newReview);
expect(updatedBook.reviews.length).toBe(2);
});

it("should create a review array if one didn't already exist", () => {
Expand Down

0 comments on commit f14ad35

Please sign in to comment.