mirror of
https://github.com/scratchfoundation/scratch-www.git
synced 2024-11-23 15:47:53 -05:00
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:
parent
c17357953b
commit
0d106c2143
1 changed files with 1 additions and 0 deletions
|
@ -12,6 +12,7 @@ describe('DonateBannerTest', () => {
|
|||
global.Date.now = realDateNow;
|
||||
});
|
||||
test('Testing Scratch week banner message', () => {
|
||||
global.Date.now = () => new Date(2022, 3, 16).getTime();
|
||||
const component = mountWithIntl(
|
||||
<DonateTopBanner />
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue