Practice ยท 2 of 3
Behavior Namer
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").
Difficulty: intermediate
Press Submit to check your solution.
Back to lesson: Practice: Designing Test Cases โ Practice