Update supported languages #1
Annotations
1 error
Update supported languages (18.x)
Unexpected error:
> [email protected] test
> node --experimental-vm-modules node_modules/jest/bin/jest.js --coverage
(node:1938) ExperimentalWarning: VM Modules is an experimental feature and might change at any time
(Use `node --trace-warnings ...` to show where the warning was created)
PASS tests/renderTopLanguagesCard.test.js
FAIL tests/renderStatsCard.test.js
● Test renderStatsCard › should render with custom width set and limit minimum width
expect(element).toHaveAttribute("width", "305.81250000000006") // element.getAttribute("width") === "305.81250000000006"
Expected the element to have attribute:
width="305.81250000000006"
Received:
width="287"
147 | hide_rank: true,
148 | });
> 149 | expect(document.querySelector("svg")).toHaveAttribute(
| ^
150 | "width",
151 | "305.81250000000006",
152 | );
at Object.<anonymous> (tests/renderStatsCard.test.js:149:43)
● Test renderStatsCard › should auto resize if hide_rank is true
expect(received).toBe(expected) // Object.is equality
Expected: "305.81250000000006"
Received: "287"
360 | expect(
361 | document.body.getElementsByTagName("svg")[0].getAttribute("width"),
> 362 | ).toBe("305.81250000000006");
| ^
363 | });
364 |
365 | it("should auto resize if hide_rank is true & custom_title is set", () => {
at Object.<anonymous> (tests/renderStatsCard.test.js:362:7)
PASS tests/renderRepoCard.test.js
PASS tests/fetchStats.test.js
PASS tests/api.test.js
PASS tests/renderGistCard.test.js
PASS tests/pat-info.test.js
PASS tests/pin.test.js
PASS tests/status.up.test.js
PASS tests/card.test.js
PASS tests/top-langs.test.js
PASS tests/gist.test.js
PASS tests/utils.test.js
PASS tests/fetchTopLanguages.test.js
PASS tests/fetchWakatime.test.js
PASS tests/fetchGist.test.js
PASS tests/fetchRepo.test.js
PASS tests/renderWakatimeCard.test.js
PASS tests/calculateRank.test.js
PASS tests/retryer.test.js
PASS tests/flexLayout.test.js
PASS tests/i18n.test.js
---------------------------|---------|----------|---------|---------|-------------------------------
File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s
---------------------------|---------|----------|---------|---------|-------------------------------
All files | 98.4 | 88.18 | 97.39 | 98.4 |
api | 99.01 | 78.46 | 100 | 99.01 |
gist.js | 97.72 | 68.75 | 100 | 97.72 | 55-56
index.js | 100 | 85.71 | 100 | 100 | 70,101
pin.js | 97.87 | 77.77 | 100 | 97.87 | 61-62
top-langs.js | 100 | 82.35 | 100 | 100 | 49,71,96
api/status | 97.15 | 95.45 | 100 | 97.15 |
pat-info.js | 98.1 | 96.42 | 100 | 98.1 | 103-105
up.js | 95.93 | 93.75 | 100 | 95.93 | 118-122
src | 100 | 100 | 100 | 100 |
calculateRank.js | 100 | 100 | 100 | 100 |
translations.js | 100 | 100 | 100 | 100 |
src/cards | 98.67 | 85.65 | 95.45 | 98.67 |
gist-card.js | 100 | 85.71 | 100 | 100 | 98-99
repo-card.js | 100 | 100 | 100 | 100 |
stats-card.js | 95.41 | 81.69 | 71.42 | 95.41 | 85-95,106-115,473-474,496-497
to
|