07Make tests able to fail
Tests for a tax function
Tests JavaScript (Jest) 14 lines
The askYou asked for "tests for priceWithTax." All three pass. Tick the lines that make a test unable to fail.
This bench is free.
Rooms
01Ask for work you can check 02Read the whole diff 03Keep secrets out of the code 04Treat every input as hostile 05Check who is asking 06Check that it exists 07Make tests able to fail 08Plan for when it breaksHall Pass $1.95/month or $19.50/year · one room $1.00 · Free during preview
Tests JavaScript (Jest) 14 lines
The askYou asked for "tests for priceWithTax." All three pass. Tick the lines that make a test unable to fail.
This bench is free.