chore: added card-i18n labeler (#779)

* chore: added card-i18n labeler

* test: fix test year
This commit is contained in:
Anurag Hazra 2021-01-03 13:40:38 +05:30 committed by GitHub
parent 68f02b095a
commit c7973a7df6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

1
.github/labeler.yml vendored
View File

@ -1,2 +1,3 @@
themes: themes/index.js
doc-translation: docs/*
card-i18n: src/translations.js

View File

@ -245,7 +245,7 @@ describe("Test renderStatsCard", () => {
document.querySelector(
'g[transform="translate(0, 25)"]>.stagger>.stat.bold',
).textContent,
).toBe("总提交 (2020):");
).toBe(`总提交 (${new Date().getFullYear()}):`);
expect(
document.querySelector(
'g[transform="translate(0, 50)"]>.stagger>.stat.bold',