Skip to content

Commit

Permalink
changes done
Browse files Browse the repository at this point in the history
  • Loading branch information
khushipatil1523 committed Dec 22, 2024
1 parent d8a7d66 commit 9191684
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/Advertisements/Advertisements.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ describe('Testing Advertisement Component', () => {
await wait();

const date = await screen.findAllByTestId('Ad_end_date');
const dateString = date[1].innerHTML;
const dateString = date[0].innerHTML;
const dateMatch = dateString.match(
/\b(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)\s+(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s+(\d{1,2})\s+(\d{4})\b/,
);
Expand All @@ -484,7 +484,7 @@ describe('Testing Advertisement Component', () => {

dateObject = new Date(year, monthIndex, day);
}

console.log(dateObject);
expect(dateObject.getTime()).toBeLessThan(new Date().getTime());
});

Expand Down

0 comments on commit 9191684

Please sign in to comment.