Skip to content
RED SAG Skills
medium10 pts · first answer countstest-automationcode-coverageunit-testing

Full line coverage, half the branches

The only test calls deliveryFee(true). What line and branch coverage does it give for this function?

function deliveryFee(isPremium) {
  let fee = 50
  if (isPremium) fee = 0
  return fee
}
Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions