Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(test): add toDatetimeLocal unit test #41

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

AlaoPrado
Copy link

Criação do teste unitário para a função toDatetimeLocal da pasta src/utils.

test/formatters.test.js Outdated Show resolved Hide resolved
@AlaoPrado
Copy link
Author

Eu fiz a mudança aqui e percebi um teste que faltou (formato ISO com mês inválido):
expect(() => toDatetimeLocal('2020-13-01T04:00:00.000Z')).toThrow(Error);

Mas ele não passou. Isso ocorreu, porque a função não conseguiu lidar direito com esse valor. Antes de adicionar esse teste, é preciso mudar a função.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants