Skip to content

Commit

Permalink
test: βœ… get rid of jest deprecated aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
yjaaidi committed Nov 3, 2023
1 parent f1f1d2d commit 05714a2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ describe(MealPlanner.name, () => {
it('should throw error if recipe is already present', () => {
const { mealPlanner, burgerDuplicate } = createMealPlannerWithBurger();

expect(() => mealPlanner.addRecipe(burgerDuplicate)).toThrowError(
expect(() => mealPlanner.addRecipe(burgerDuplicate)).toThrow(
`Can't add recipe.`
);
});
Expand Down

0 comments on commit 05714a2

Please sign in to comment.