A test that finishes before its work
A check can read the old note while a save is still running.
your task
Fix checkNote so “Stored” prints before “Checked”. Both lines must show “Review the booking”. Keep the save function, the single save call, and both messages.
The note starts as “Draft note”. The test saves “Review the booking” and then checks the stored note. Predict which message prints first. Run the starter once to check your prediction.
Run code runs your code once for each case. It compares what your code prints with the expected output.
Starter code
or press Ctrl EnterNot run yet
cases
Not run yetSave and check the edited note
Expected output
1
Stored: Review the booking2
Checked: Review the booking