refactor: fix fetchers names by removing duplicating postfix (#4375)

This commit is contained in:
Alexandr Garbuzov
2025-08-24 17:07:23 +03:00
committed by GitHub
parent a92cc03e92
commit 09cb2a596e
17 changed files with 16 additions and 16 deletions
+5 -5
View File
@@ -28,7 +28,7 @@ lang-card:
- any-glob-to-any-file:
- api/top-langs.js
- src/cards/top-languages-card.js
- src/fetchers/top-languages-fetcher.js
- src/fetchers/top-languages.js
- tests/fetchTopLanguages.test.js
- tests/renderTopLanguagesCard.test.js
- tests/top-langs.test.js
@@ -38,7 +38,7 @@ repo-card:
- any-glob-to-any-file:
- api/pin.js
- src/cards/repo-card.js
- src/fetchers/repo-fetcher.js
- src/fetchers/repo.js
- tests/fetchRepo.test.js
- tests/renderRepoCard.test.js
- tests/pin.test.js
@@ -48,7 +48,7 @@ stats-card:
- any-glob-to-any-file:
- api/index.js
- src/cards/stats-card.js
- src/fetchers/stats-fetcher.js
- src/fetchers/stats.js
- tests/fetchStats.test.js
- tests/renderStatsCard.test.js
- tests/api.test.js
@@ -58,7 +58,7 @@ wakatime-card:
- any-glob-to-any-file:
- api/wakatime.js
- src/cards/wakatime-card.js
- src/fetchers/wakatime-fetcher.js
- src/fetchers/wakatime.js
- tests/fetchWakatime.test.js
- tests/renderWakatimeCard.test.js
- tests/wakatime.test.js
@@ -68,7 +68,7 @@ gist-card:
- any-glob-to-any-file:
- api/gist.js
- src/cards/gist-card.js
- src/fetchers/gist-fetcher.js
- src/fetchers/gist.js
- tests/fetchGist.test.js
- tests/renderGistCard.test.js
- tests/gist.test.js
+1 -1
View File
@@ -6,7 +6,7 @@ import {
} from "../src/common/utils.js";
import { isLocaleAvailable } from "../src/translations.js";
import { renderGistCard } from "../src/cards/gist-card.js";
import { fetchGist } from "../src/fetchers/gist-fetcher.js";
import { fetchGist } from "../src/fetchers/gist.js";
export default async (req, res) => {
const {
+1 -1
View File
@@ -7,7 +7,7 @@ import {
parseBoolean,
renderError,
} from "../src/common/utils.js";
import { fetchStats } from "../src/fetchers/stats-fetcher.js";
import { fetchStats } from "../src/fetchers/stats.js";
import { isLocaleAvailable } from "../src/translations.js";
export default async (req, res) => {
+1 -1
View File
@@ -6,7 +6,7 @@ import {
parseBoolean,
renderError,
} from "../src/common/utils.js";
import { fetchRepo } from "../src/fetchers/repo-fetcher.js";
import { fetchRepo } from "../src/fetchers/repo.js";
import { isLocaleAvailable } from "../src/translations.js";
export default async (req, res) => {
+1 -1
View File
@@ -6,7 +6,7 @@ import {
parseBoolean,
renderError,
} from "../src/common/utils.js";
import { fetchTopLanguages } from "../src/fetchers/top-languages-fetcher.js";
import { fetchTopLanguages } from "../src/fetchers/top-languages.js";
import { isLocaleAvailable } from "../src/translations.js";
export default async (req, res) => {
+1 -1
View File
@@ -6,7 +6,7 @@ import {
parseBoolean,
renderError,
} from "../src/common/utils.js";
import { fetchWakatimeStats } from "../src/fetchers/wakatime-fetcher.js";
import { fetchWakatimeStats } from "../src/fetchers/wakatime.js";
import { isLocaleAvailable } from "../src/translations.js";
export default async (req, res) => {
+1 -1
View File
@@ -2,7 +2,7 @@ import "@testing-library/jest-dom";
import axios from "axios";
import MockAdapter from "axios-mock-adapter";
import { expect, it, describe, afterEach } from "@jest/globals";
import { fetchGist } from "../src/fetchers/gist-fetcher.js";
import { fetchGist } from "../src/fetchers/gist.js";
const gist_data = {
data: {
+1 -1
View File
@@ -1,7 +1,7 @@
import "@testing-library/jest-dom";
import axios from "axios";
import MockAdapter from "axios-mock-adapter";
import { fetchRepo } from "../src/fetchers/repo-fetcher.js";
import { fetchRepo } from "../src/fetchers/repo.js";
import { expect, it, describe, afterEach } from "@jest/globals";
const data_repo = {
+1 -1
View File
@@ -2,7 +2,7 @@ import "@testing-library/jest-dom";
import axios from "axios";
import MockAdapter from "axios-mock-adapter";
import { calculateRank } from "../src/calculateRank.js";
import { fetchStats } from "../src/fetchers/stats-fetcher.js";
import { fetchStats } from "../src/fetchers/stats.js";
import { expect, it, describe, beforeEach, afterEach } from "@jest/globals";
// Test parameters.
+1 -1
View File
@@ -1,7 +1,7 @@
import "@testing-library/jest-dom";
import axios from "axios";
import MockAdapter from "axios-mock-adapter";
import { fetchTopLanguages } from "../src/fetchers/top-languages-fetcher.js";
import { fetchTopLanguages } from "../src/fetchers/top-languages.js";
import { expect, it, describe, afterEach } from "@jest/globals";
const mock = new MockAdapter(axios);
+1 -1
View File
@@ -1,7 +1,7 @@
import "@testing-library/jest-dom";
import axios from "axios";
import MockAdapter from "axios-mock-adapter";
import { fetchWakatimeStats } from "../src/fetchers/wakatime-fetcher.js";
import { fetchWakatimeStats } from "../src/fetchers/wakatime.js";
import { expect, it, describe, afterEach } from "@jest/globals";
const mock = new MockAdapter(axios);
+1 -1
View File
@@ -6,7 +6,7 @@ import { themes } from "../themes/index.js";
import "@testing-library/jest-dom";
/**
* @type {import("../src/fetchers/gist-fetcher").GistData}
* @type {import("../src/fetchers/gist").GistData}
*/
const data = {
name: "test",