From 3708aef68f4068a04f51e55b9503c44fac1b6035 Mon Sep 17 00:00:00 2001 From: Aadrika Bhargava <64789514+reachaadrika@users.noreply.github.com> Date: Mon, 17 Jul 2023 11:45:12 +0530 Subject: [PATCH] feat: add unit tests for campaigns folder (#1724) Co-authored-by: akshatnema <20bcs022@iiitdmj.ac.in>%0ACo-authored-by: Akshat Nema <76521428+akshatnema@users.noreply.github.com> --- components/campaigns/AnnoucementHero.js | 7 ++- .../campaigns/AnnouncementRamainingDays.js | 2 +- components/campaigns/Banner.js | 6 +- cypress/test/ComponentName.cy.js | 5 -- .../test/campaignTests/AnnouncementHero.cy.js | 55 +++++++++++++++++++ .../AnnouncementRemainingDays.cy.js | 38 +++++++++++++ cypress/test/campaignTests/Banner.cy.js | 50 +++++++++++++++++ 7 files changed, 151 insertions(+), 12 deletions(-) delete mode 100644 cypress/test/ComponentName.cy.js create mode 100644 cypress/test/campaignTests/AnnouncementHero.cy.js create mode 100644 cypress/test/campaignTests/AnnouncementRemainingDays.cy.js create mode 100644 cypress/test/campaignTests/Banner.cy.js diff --git a/components/campaigns/AnnoucementHero.js b/components/campaigns/AnnoucementHero.js index 88928285b52..81fce0c2c54 100644 --- a/components/campaigns/AnnoucementHero.js +++ b/components/campaigns/AnnoucementHero.js @@ -28,15 +28,15 @@ export default function AnnouncementHero({ className = '', small = false, hideVi