-
Notifications
You must be signed in to change notification settings - Fork 35
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
Exercício S01 - Amanda Bittencourt #19
base: main
Are you sure you want to change the base?
Conversation
return this.saldo; | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
module.exports = ContaDoBanco; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
throw new Error("Saldo insuficiente!") | ||
} | ||
} | ||
consultarSaldo() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Acho que não precisa dessa função aqui, dado que ela foi feita no início do arquivo.
expect(() => conta.sacar(2000)).toThrow('Saldo insuficiente!'); | ||
}); | ||
|
||
test('consulta do sasldo, consulta do saldo nao deve ser nula',() =>{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
consulta do saldo nao deve ser nula
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oii tudo bem?
Nao entendi esse aqui...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Aqui foi só a descrição mesmo que está consulta do sasldo, consulta do saldo nao deve ser nula
, corrigir para consulta do saldo nao deve ser nula
O que?
Resolução dos exercícios de TDD usando o Jest
Como?