Checking Strings

Learn various approaches for checking string results in a test in this lesson.

Performing a strict match

The project for this lesson will be familiar from previous lessons. The difference will be that getPerson and getCompany return string messages when the person or company can’t be found. The tests in the project are required to check that the correct messages are returned.

A copy of the starter code is in the code widget below:

Get hands-on with 1200+ tech skills courses.