(coursePrices, seats)
| 866 | } |
| 867 | |
| 868 | const getCourseBundlePrice = function (coursePrices, seats) { |
| 869 | let pricePerSeat |
| 870 | if (seats == null) { seats = 20 } |
| 871 | const totalPricePerSeat = coursePrices.reduce((a, b) => a + b, 0) |
| 872 | if (coursePrices.length > 2) { |
| 873 | pricePerSeat = Math.round(totalPricePerSeat / 2.0) |
| 874 | } else { |
| 875 | pricePerSeat = parseInt(totalPricePerSeat) |
| 876 | } |
| 877 | return seats * pricePerSeat |
| 878 | } |
| 879 | |
| 880 | const getCoursePraise = function () { |
| 881 | const praise = [ |
nothing calls this directly
no outgoing calls
no test coverage detected