Skip to content

Commit

Permalink
Fix typo: corrected promotion removal message #6811
Browse files Browse the repository at this point in the history
Signed-off-by: Rishabh Dwivedi <[email protected]>
  • Loading branch information
rishabhdwivedii committed Aug 14, 2023
1 parent b04166d commit 259c14f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,10 @@ export default async function applyPromotions(context, cart, options = { skipTem
if (!promotion.enabled) {
if (canAddToCartMessages(cart, promotion)) {
enhancedCart.messages.push(createCartMessage({
title: "The promotion no longer available",
title: "Promotion is no longer available",
subject: "promotion",
severity: "warning",
requiresReadAcknowledgement: true,
metaFields: {
promotionId: promotion._id
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ describe("cart message", () => {

await applyPromotions(mockContext, cart);

expect(cart.messages[0].title).toEqual("The promotion no longer available");
expect(cart.messages[0].title).toEqual("Promotion is no longer available");
});

test("should have promotion is not eligible message when explicit promotion is not eligible", async () => {
Expand Down

0 comments on commit 259c14f

Please sign in to comment.