You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The 1st exercise - separation of concerns - calls for moving 4 methods from vendingMachine.js to balanceManager.js. The official solution includes increaseBalance, decreaseBalance, getBalance and canAfford. However, in the exercise "Fix your teammate's mistakes", the test calls for function isValidAmount from the module balanceManager.js, which at the time would have not been separated from vendingMachine.js.
The solution for this issue would involve adding isValidAmount as a fifth method to the test cases of the SoC exercise as well as some amendments to that exercise description.
The text was updated successfully, but these errors were encountered:
doug2k1
pushed a commit
to doug2k1/js-best-practices-workshopper
that referenced
this issue
Oct 2, 2017
The 1st exercise - separation of concerns - calls for moving 4 methods from vendingMachine.js to balanceManager.js. The official solution includes increaseBalance, decreaseBalance, getBalance and canAfford. However, in the exercise "Fix your teammate's mistakes", the test calls for function isValidAmount from the module balanceManager.js, which at the time would have not been separated from vendingMachine.js.
The solution for this issue would involve adding isValidAmount as a fifth method to the test cases of the SoC exercise as well as some amendments to that exercise description.
The text was updated successfully, but these errors were encountered: