Skip to content

Commit

Permalink
Fix test for min/mins suffix
Browse files Browse the repository at this point in the history
  • Loading branch information
JHWelch committed Feb 19, 2024
1 parent 0e31bfd commit 2871847
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions __tests__/MMM-CTA.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ describe('getTemplateData', () => {
now = new Date();
jest.useFakeTimers().setSystemTime(now); // Ensures time is consistent
threeMinutes = new Date();
threeMinutes.setMinutes(threeMinutes.getMinutes() + 3);
threeMinutes.setMinutes(threeMinutes.getMinutes() + 1);
twelveMinutes = new Date();
twelveMinutes.setMinutes(twelveMinutes.getMinutes() + 12);

Expand Down Expand Up @@ -200,12 +200,12 @@ describe('getTemplateData', () => {
},
{
direction: '95th/Dan Ryan',
arrival: '3',
arrival: '1 min',
routeColor: 'cta-red',
},
{
direction: 'Howard',
arrival: '12',
arrival: '12 mins',
routeColor: 'cta-green',
},
],
Expand Down

0 comments on commit 2871847

Please sign in to comment.