Update tests

This commit is contained in:
Rob Cameron
2022-02-08 15:39:24 -08:00
parent 10df447763
commit c3d234f532
5 changed files with 19 additions and 19 deletions

View File

@@ -11,18 +11,18 @@ const loggedOut = () => {
}
describe('BlogLayout', () => {
it('displays a Log In link when not logged in', async () => {
it('displays a Login link when not logged in', async () => {
loggedOut()
render(<BlogLayout />)
await waitFor(() => expect(screen.getByText('Log In')).toBeInTheDocument())
await waitFor(() => expect(screen.getByText('Login')).toBeInTheDocument())
})
it('displays a Log Out link when logged in', async () => {
it('displays a Logout link when logged in', async () => {
loggedIn()
render(<BlogLayout />)
await waitFor(() => expect(screen.getByText('Log Out')).toBeInTheDocument())
await waitFor(() => expect(screen.getByText('Logout')).toBeInTheDocument())
})
it("displays a logged in user's email address", async () => {