-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adding alex to the About component
- Loading branch information
Showing
4 changed files
with
109 additions
and
42 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,35 @@ | ||
import React from 'react'; | ||
import { shallowRenderToMatchSnapshot } from '../../util/unitTests'; | ||
import React from "react"; | ||
import {shallowRenderToMatchSnapshot} from "../../util/unitTests"; | ||
|
||
import ImageAvatars from './ImageAvatars'; | ||
import ImageAvatars from "./ImageAvatars"; | ||
import {render, screen} from "@testing-library/react"; | ||
|
||
describe('<ImageAvatars>', () => { | ||
it('renders correctly', () => { | ||
shallowRenderToMatchSnapshot(<ImageAvatars />); | ||
}); | ||
}); | ||
describe("<ImageAvatars>", () => { | ||
it("renders correctly", () => { | ||
shallowRenderToMatchSnapshot(<ImageAvatars />); | ||
}); | ||
|
||
it("displays rocio name and photo and title", () => { | ||
render(<ImageAvatars />); | ||
|
||
expect(screen.getByText("Rocio Ng")).toBeVisible(); | ||
expect(screen.getByAltText("Rocio")).toHaveAttribute("src", "rocio.jpg"); | ||
expect(screen.getByText("Project Lead")).toBeVisible(); | ||
}); | ||
|
||
it("displays emilys name and photo and title", () => { | ||
render(<ImageAvatars />); | ||
|
||
expect(screen.getByText("Emily Kasa")).toBeVisible(); | ||
expect(screen.getByAltText("Emily")).toHaveAttribute("src", "emily.jpg"); | ||
expect(screen.getByText("Data Jam Lead")).toBeVisible(); | ||
}); | ||
|
||
it("displays alexs name and photo and title", () => { | ||
render(<ImageAvatars />); | ||
|
||
expect(screen.getByAltText("Alex")).toHaveAttribute("src", "alexkerr.jpg"); | ||
expect(screen.getByText("Alex Kerr")).toBeVisible(); | ||
expect(screen.getByText("Engineer")).toBeVisible(); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters