Skip to content

Commit

Permalink
test: fix e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rickstaa committed Jan 21, 2023
1 parent 9eb0c3c commit d5d1f44
Showing 1 changed file with 19 additions and 24 deletions.
43 changes: 19 additions & 24 deletions tests/e2e/e2e.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,22 @@ import { renderStatsCard } from "../../src/cards/stats-card.js";
import { renderTopLanguages } from "../../src/cards/top-languages-card.js";
import { renderWakatimeCard } from "../../src/cards/wakatime-card.js";

const REPO = "dummy-cra";
const USER = "grsdummy";
const REPO = "cra-test";
const USER = "catelinemnemosyne";
const STATS_DATA = {
name: "grsdummy",
totalPRs: 2,
totalCommits: 2,
name: "Cateline Mnemosyne",
totalPRs: 1,
totalCommits: 7,
totalIssues: 1,
totalStars: 1,
contributedTo: 2,
contributedTo: 1,
rank: {
level: "A+",
score: 50.900829325065935,
score: 50.893750297869225,
},
};

const LANGS_DATA = {
TypeScript: {
color: "#3178c6",
name: "TypeScript",
size: 2049,
},
HTML: {
color: "#e34c26",
name: "HTML",
Expand All @@ -42,44 +37,44 @@ const LANGS_DATA = {
name: "CSS",
size: 930,
},
Python: {
JavaScript: {
color: "#3572A5",
name: "Python",
size: 671,
name: "JavaScript",
size: 1912,
},
};

const WAKATIME_DATA = {
human_readable_range: "last week",
is_already_updating: false,
is_coding_activity_visible: false,
is_coding_activity_visible: true,
is_including_today: false,
is_other_usage_visible: false,
is_other_usage_visible: true,
is_stuck: false,
is_up_to_date: false,
is_up_to_date_pending_future: false,
percent_calculated: 0,
range: "last_7_days",
status: "pending_update",
timeout: 15,
username: "grsdummy",
username: USER,
writes_only: false,
};

const REPOSITORY_DATA = {
name: "dummy-cra",
nameWithOwner: "grsdummy/dummy-cra",
name: "cra-test",
nameWithOwner: `${USER}/cra-test`,
isPrivate: false,
isArchived: false,
isTemplate: false,
stargazers: {
totalCount: 1,
},
description: "Dummy create react app.",
description: "Simple cra test repo.",
primaryLanguage: {
color: "#3178c6",
id: "MDg6TGFuZ3VhZ2UyODc=",
name: "TypeScript",
color: "#f1e05a",
id: "MDg6TGFuZ3VhZ2UxNDA=",
name: "JavaScript",
},
forkCount: 0,
starCount: 1,
Expand Down

1 comment on commit d5d1f44

@vercel
Copy link

@vercel vercel bot commented on d5d1f44 Jan 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.