May 2019
Intermediate to advanced
496 pages
10h 38m
English
Change your describe call to this:
describe('Appointment', () => { it('renders the customer first name', () => { });});
The it function defines a single test. The first argument is the description of the test and always starts with a present-tense verb, so that it reads in plain English. The it in the function name refers to the noun you used to name your test suite (in this case, Appointment). In fact, if you run tests now, with npm test, remember, it should make sense:
PASS test/Appointment.test.js Appointment ✓ renders the customer first name (1ms)
You can read the describe and it descriptions together as one sentence: Appointment renders the customer first name. You should aim for all of your tests to be ...
Read now
Unlock full access