tests(stats card): fix render translations test (#3580)

This commit is contained in:
Alexandr Garbuzov 2024-01-07 09:42:23 +02:00 committed by GitHub
parent 7d4c49b7f7
commit 4710f24670
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',