Actually set the date in one of the tests. It worked before because it the real date was before may 22.

This commit is contained in:
picklesrus 2022-05-23 12:38:18 -04:00
parent c17357953b
commit 0d106c2143

View file

@ -12,6 +12,7 @@ describe('DonateBannerTest', () => {
global.Date.now = realDateNow; global.Date.now = realDateNow;
}); });
test('Testing Scratch week banner message', () => { test('Testing Scratch week banner message', () => {
global.Date.now = () => new Date(2022, 3, 16).getTime();
const component = mountWithIntl( const component = mountWithIntl(
<DonateTopBanner /> <DonateTopBanner />
); );