Skip to content

Commit

Permalink
tests(stats card): fix render translations test (anuraghazra#3580)
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored Jan 7, 2024
1 parent 7d4c49b commit 4710f24
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/renderStatsCard.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,9 @@ describe("Test renderStatsCard", () => {
document.querySelector(
'g[transform="translate(0, 25)"]>.stagger>.stat.bold',
).textContent,
).toMatchInlineSnapshot(`"累计提交数(commit) (2023):"`);
).toMatchInlineSnapshot(
`"累计提交数(commit) (${new Date().getFullYear()}):"`,
);
expect(
document.querySelector(
'g[transform="translate(0, 50)"]>.stagger>.stat.bold',
Expand Down

0 comments on commit 4710f24

Please sign in to comment.