(category)
| 2 | import { inventoryByCategory } from './inventoryByCategory' |
| 3 | |
| 4 | async function inventoryForCategory (category) { |
| 5 | const inventory = await fetchInventory() |
| 6 | const byCategory = inventoryByCategory(inventory) |
| 7 | return byCategory[category].items |
| 8 | } |
| 9 | |
| 10 | export default inventoryForCategory |
no test coverage detected