-
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
resolução exercício para casa - conta bancária #38
base: main
Are you sure you want to change the base?
Conversation
this.saldo = this.saldo - valor | ||
} | ||
return this.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.
Na opção de saque ficou faltando a parte que a pessoa possui parte do valor em saldo e parte do valor em limite.
|
||
const conta = new ContaBancaria("Melina", 800, 350) | ||
|
||
module.exports = ContaBancaria |
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.
O código ficou muito limpo e organizado! A nomeação das variáveis para os métodos ficou bem clara!
test("sem saldo suficiente, deve apresentar saldo negativo no valor retirado do limite", () => { | ||
expect(conta.sacar(900)).toEqual(-100) | ||
}) | ||
|
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.
Ficaria faltando a parte que a pessoa possui parte valor em saldo e parte do valor em limite.
expect(conta.desativarLimite()).toEqual(0) | ||
}) | ||
|
||
}) |
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.
Testes muito organizados!
No description provided.