From 286a8f01e71c6527c4e19d88ace0cca74259f215 Mon Sep 17 00:00:00 2001 From: Aaron Childers <59631945+itsjustaaron@users.noreply.github.com> Date: Tue, 31 Jan 2023 17:50:13 -0500 Subject: [PATCH] Correct bank-account test to close account The test that checks "close already closed account throws error" does not currently try to close the account twice. Adding in `account.close()` before the `expect()` should fix this. --- exercises/practice/bank-account/bank-account.spec.js | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises/practice/bank-account/bank-account.spec.js b/exercises/practice/bank-account/bank-account.spec.js index 59ef05f8fb..1f71354a67 100644 --- a/exercises/practice/bank-account/bank-account.spec.js +++ b/exercises/practice/bank-account/bank-account.spec.js @@ -66,6 +66,7 @@ describe('Bank Account', () => { xtest('close already closed account throws error', () => { const account = new BankAccount(); + account.close(); expect(() => { account.close(); }).toThrow(ValueError);