File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -251,7 +251,7 @@ test('allows the user to login successfully', async () => {
251251
252252 // fill out the form
253253 fireEvent .change (getByLabelText (/ username/ i ), {target: {value: ' chuck' }})
254- fireEvent .change (getBylabelText (/ password/ i ), {target: {value: ' norris' }})
254+ fireEvent .change (getByLabelText (/ password/ i ), {target: {value: ' norris' }})
255255
256256 fireEvent .click (getByText (/ submit/ i ))
257257
@@ -263,7 +263,7 @@ test('allows the user to login successfully', async () => {
263263 // otherwise you could use expect(alert.textContent).toMatch(/congrats/i)
264264 // but jest-dom will give you better error messages which is why it's recommended
265265 expect (alert).toHaveTextContent (/ congrats/ i )
266- expect (window .localStorage .getItem (' token' )).toEqual (fakeUserReponse .token )
266+ expect (window .localStorage .getItem (' token' )).toEqual (fakeUserResponse .token )
267267})
268268` ` `
269269
You can’t perform that action at this time.
0 commit comments