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

Corrige os testes de limite de tamanho do slug #1704

Merged
merged 1 commit into from
May 22, 2024

Conversation

aprendendofelipe
Copy link
Collaborator

Mudanças realizadas

Corrige os dois testes que deveriam verificar se o slug era corretamente truncado para o limite de 226 bytes, mas que não estavam verificando nada, já que o input já possuía exatamente o limite de 226 bytes. Agora os inputs dos testes possuem 227 bytes e podemos verificar que o slug é corretamente criado com os primeiros 226 bytes.

A funcionalidade já estava correta, e inclusive estava sendo garantida por testes com títulos longos, mas esses dois testes específicos não garantiam nada.

Tipo de mudança

  • Correção de testes

Copy link

vercel bot commented May 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
tabnews ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 22, 2024 11:47pm

@aprendendofelipe aprendendofelipe merged commit c49a02c into main May 22, 2024
7 checks passed
@aprendendofelipe aprendendofelipe deleted the fix/slug-size-tests branch May 22, 2024 23:48
@Rafatcb Rafatcb added the testes Criação ou melhoria de testes label May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
testes Criação ou melhoria de testes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants