Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Discord Nav/Footer Link #52

Merged
merged 4 commits into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/links.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ export default [
{ href: '/', text: 'Home' },
{ href: '#about', text: 'About' },
{ href: 'https://www.freecodecamp.org/', text: 'FreeCodeCamp' },
{ href: 'https://discord.gg', text: 'Discord' },
{ href: 'https://discord.gg/aF8skEe9nq', text: 'Discord' },
jduffey marked this conversation as resolved.
Show resolved Hide resolved
{ href: 'https://github.com/FCCColumbus', text: 'GitHub' },
{ href: '#events', text: 'Events' },
{ href: 'https://github.com/FCCColumbus/cbus-web/graphs/contributors', text: 'Contributors' },
]
{href: 'https://github.com/FCCColumbus/cbus-web/graphs/contributors',text:'Contributors' },
jduffey marked this conversation as resolved.
Show resolved Hide resolved
];
4 changes: 2 additions & 2 deletions src/test/__snapshots__/App.test.js.snap
mmcbride2929 marked this conversation as resolved.
Show resolved Hide resolved
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports[`App renders 1`] = `
</li>
<li>
<a
href="https://discord.gg"
href="https://discord.gg/aF8skEe9nq"
mmcbride2929 marked this conversation as resolved.
Show resolved Hide resolved
>
Discord
</a>
Expand Down Expand Up @@ -318,7 +318,7 @@ exports[`App renders 1`] = `
</li>
<li>
<a
href="https://discord.gg"
href="https://discord.gg/aF8skEe9nq"
mmcbride2929 marked this conversation as resolved.
Show resolved Hide resolved
>
Discord
</a>
Expand Down
8 changes: 7 additions & 1 deletion src/test/components/Footer.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import renderer from "react-test-renderer";

import Footer from "../../components/Footer";
import { render, screen } from "@testing-library/react";

describe("Footer", () => {
it("renders", () => {
const view = renderer.create(<Footer />);
expect(view).toMatchSnapshot();
});

it("displays 'Discord' as the third item", () => {
jduffey marked this conversation as resolved.
Show resolved Hide resolved
render(<Footer />);
const thirdItem = screen.getByText("Discord");
expect(thirdItem).toBeInTheDocument();
});
mmcbride2929 marked this conversation as resolved.
Show resolved Hide resolved
});
8 changes: 7 additions & 1 deletion src/test/components/Header.test.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
import renderer from "react-test-renderer";

import Header from "../../components/Header";
import { render, screen } from "@testing-library/react";

describe("Header", () => {
it("renders", () => {
const view = renderer.create(<Header />);
expect(view).toMatchSnapshot();
});

mmcbride2929 marked this conversation as resolved.
Show resolved Hide resolved
it("displays 'Discord' as the third item", () => {
jduffey marked this conversation as resolved.
Show resolved Hide resolved
render(<Header />);
const thirdItem = screen.getByText("Discord");
expect(thirdItem).toBeInTheDocument();
});
});
2 changes: 1 addition & 1 deletion src/test/components/__snapshots__/Footer.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ exports[`Footer renders 1`] = `
</li>
<li>
<a
href="https://discord.gg"
href="https://discord.gg/aF8skEe9nq"
mmcbride2929 marked this conversation as resolved.
Show resolved Hide resolved
>
Discord
</a>
Expand Down
2 changes: 1 addition & 1 deletion src/test/components/__snapshots__/Header.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ exports[`Header renders 1`] = `
</li>
<li>
<a
href="https://discord.gg"
href="https://discord.gg/aF8skEe9nq"
mmcbride2929 marked this conversation as resolved.
Show resolved Hide resolved
>
Discord
</a>
Expand Down