Skip to content

Commit

Permalink
Update eslint rule
Browse files Browse the repository at this point in the history
  • Loading branch information
chiamakaikeanyi committed Mar 30, 2024
1 parent fef91e5 commit c485998
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/app.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe("App", () => {
cy.get(selectors.border_countries).should("exist");

cy.get(selectors.border_countries_list).find("li").first().click();
cy.url().should("include", "/nld");
cy.url().should("include", "/pol");

// navigates back when the Back button is clicked
cy.get(selectors.back_button).click();
Expand Down
9 changes: 5 additions & 4 deletions src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable indent */
import React, { useState } from "react";

import { useQuery } from "@tanstack/react-query";
Expand Down Expand Up @@ -101,8 +102,8 @@ export default function Home() {
{filteredCountries?.length > 200
? "More than 200 countries"
: `${filteredCountries?.length} ${
filteredCountries?.length > 1 ? "countries" : "country"
}`}
filteredCountries?.length > 1 ? "countries" : "country"
}`}
</h2>
)}

Expand All @@ -112,8 +113,8 @@ export default function Home() {
isLoading
? "Loading..."
: isError
? "An error occured. Please try again."
: "Country not found. Please try another one."
? "An error occured. Please try again."
: "Country not found. Please try another one."
}
/>
) : (
Expand Down

0 comments on commit c485998

Please sign in to comment.