mirror of
https://github.com/System-End/github-readme-stats.git
synced 2026-04-19 15:28:25 +00:00
tests(stats card): fix render translations test (#3580)
This commit is contained in:
parent
7d4c49b7f7
commit
4710f24670
1 changed files with 3 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue