Curriculum

Curriculum

Read the Actual Test Output

Scenario

An agent says the booking fix is done. Compare three possible reports.

Selected choicePick a choice below
Result—

Try it yourself

Which report gives evidence of the correct check actually passing?

Reveal the explanation
  1. “Looks good”

    This says nothing about which tests ran.

  2. “0 tests discovered”

    The intended tests did not run.

  3. “node --test booking.test.mjs · 3 passed”

    The named test run reports three passing cases. Check the cases cover the rule.

When a check fails, identify the failing case and compare the expected value with the actual value.

Your turn

Run the shared JavaScript test suite and write down which cases were executed.

Common mistake Treating zero discovered tests as evidence of success.

Check your work

The command and output identify the zero-, one-, and two-seat checks.