Skip to content

Commit

Permalink
Fix extra space in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Franverri committed Mar 9, 2021
1 parent f9ab3d1 commit e948996
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 10-React-Forms/homework/src/Form.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ describe('<Form /> Mounted', () => {
beforeEach(() => {
wrapper = mount(<Form />);
});
it('El form debe tener un label que diga: "Username: "', () => {
it('El form debe tener un label que diga: "Username:"', () => {
const { container } = render(<Form />)
const element = container.querySelectorAll('label')[0]
expect(element.innerHTML).toBe('Username:');
});

it('El form debe tener un label que diga: "Password: "', () => {
it('El form debe tener un label que diga: "Password:"', () => {
const { container } = render(<Form />)
const element = container.querySelectorAll('label')[1]
expect(element.innerHTML).toBe('Password:');
Expand Down

0 comments on commit e948996

Please sign in to comment.