fix: rename value to message in HandleUseFormCallback return type

BREAKING CHANGE: Migrate your onSubmit handlers to return a `message` instead of `value`
This commit is contained in:
Divlo
2023-04-02 22:08:32 +02:00
parent 69f12002c7
commit 5bb73df804
4 changed files with 9 additions and 9 deletions

View File

@ -3,7 +3,7 @@ describe('Form', () => {
cy.visit('/')
})
it('suceeds, reset input values and display the global success message', () => {
it('succeeds, reset input values and display the global success message', () => {
cy.get('[data-cy=input-name]').type('John')
cy.get('[data-cy=input-email]').type('john@john.com')
cy.get('#error-name').should('not.exist')