The comment on purchaseInventoryIfAvailable in fruit-picker.js says arg should be bool but a test case expects passing an object to return "PURCHASE" as if this is an expected type.
|
* @param {boolean} isAvailable |
|
expect(purchaseInventoryIfAvailable(null, { quantityAvailable: 4 })).toBe( |
The test case should be replaced by a bool or the comment should be updated to show different types are expected.
The comment on
purchaseInventoryIfAvailablein fruit-picker.js says arg should be bool but a test case expects passing an object to return "PURCHASE" as if this is an expected type.javascript/exercises/concept/fruit-picker/fruit-picker.js
Line 38 in 669ddc8
javascript/exercises/concept/fruit-picker/fruit-picker.spec.js
Line 74 in 669ddc8
The test case should be replaced by a bool or the comment should be updated to show different types are expected.