File tree 1 file changed +2
-2
lines changed
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 () => {
251
251
252
252
// fill out the form
253
253
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' }})
255
255
256
256
fireEvent .click (getByText (/ submit/ i ))
257
257
@@ -263,7 +263,7 @@ test('allows the user to login successfully', async () => {
263
263
// otherwise you could use expect(alert.textContent).toMatch(/congrats/i)
264
264
// but jest-dom will give you better error messages which is why it's recommended
265
265
expect (alert).toHaveTextContent (/ congrats/ i )
266
- expect (window .localStorage .getItem (' token' )).toEqual (fakeUserReponse .token )
266
+ expect (window .localStorage .getItem (' token' )).toEqual (fakeUserResponse .token )
267
267
})
268
268
` ` `
269
269
You can’t perform that action at this time.
0 commit comments