Practice · 2 of 3
Behavior Namer
CHALLENGE
Difficulty: intermediate+25 XP
Write testName(fn, behavior) producing framework-style names: prefix the function name, join with a space, behavior text unchanged. E.g. testName("cart", "rejects negative quantities") => "cart rejects negative quantities". Empty behavior throws Error("behavior required").
Press Submit to check your solution.
Back to lesson: Practice: Designing Test Cases — Practice