Skip to content

Consertado bug no teste de customer#2

Open
thiagoggth wants to merge 1 commit into
codeedu:mainfrom
thiagoggth:fix-customer-not-found-test
Open

Consertado bug no teste de customer#2
thiagoggth wants to merge 1 commit into
codeedu:mainfrom
thiagoggth:fix-customer-not-found-test

Conversation

@thiagoggth
Copy link
Copy Markdown

Tem um bug no teste "should throw an error when customer is not found", nao tem o "await" antes do metodo de expect do teste, por conta disso o sequelize nao inicia direito, mas como no repository o catch ta assumindo que qualquer erro é o not found acaba passando no teste.

Erro:
image

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