Skip to content

Commit

Permalink
chore: update?
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed Sep 24, 2024
1 parent 1d6b65a commit 8c8d083
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/generateWithTZ.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@ const JP = 'Asia/Tokyo';

beforeEach(() => {
MockDate.set(new Date());
dayjs.tz.setDefault(CN);
moment.tz.setDefault(CN);
});

afterEach(() => {
dayjs.tz.setDefault();
moment.tz.setDefault();
MockDate.reset();
});

Expand Down

0 comments on commit 8c8d083

Please sign in to comment.