Skip to content

Commit

Permalink
UADS-53 fix: Fixed image name and failing test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Harsheel12 committed Jun 23, 2024
1 parent 7d84db7 commit 2bfd254
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
File renamed without changes
3 changes: 1 addition & 2 deletions web/src/pages/Sponsor.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import donut from "../assets/dessert-donut-doughnut-svgrepo-com 1.svg";
import donut from "../assets/half_donut_jelly.svg";
import Navbar from "../components/Navbar";
import Footer from "../components/Footer";
import { useState, useEffect } from "react";
Expand All @@ -14,7 +14,6 @@ export default function Sponsor() {
async function fetchSponsors() {
try {
const response = await axios.get("http://localhost:4000/api/sponsors/");
console.log(response.data);
setSponsors(response.data);
setDisplayedSponsors(response.data);
} catch (error) {
Expand Down
2 changes: 1 addition & 1 deletion web/src/pages/__tests__/Sponsor.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe("Sponsor Page Rendering", () => {
</MemoryRouter>
);

const message = screen.getByText(/Sponsors Page/i);
const message = screen.getByText(/Our Sponsors/i);

expect(message).toBeInTheDocument();
});
Expand Down

0 comments on commit 2bfd254

Please sign in to comment.