-
Notifications
You must be signed in to change notification settings - Fork 432
Description
The exercises 02.6-conditional-rendering, 02.7-conditional-rendering-ii have a tests.js with the unit tests to confirm if the exercise was well done.
The fist two tests are ok, but we need an additional test with a snapshot that checks for the expected output. Very similar to the tests.js that are already done in the previous exercises.
To complete this feature you will have to update the tests.js file in both exercises folders and add a new test using toMatchInlineSnapshot.
How to complete this issue?
- Download the exercises like a normal student.
- Using your local text editor (atom, sublime, etc.) open the tests.js file on the particular exercise you are working on and edit.
Now, test your tests.js file for that particular exercise following the steps bellow:
- Run the exercises like a normal student using
$ bc run:exercises - Open website in your browser and navegate to the particular exercises that you want to test (just like a normal student would do).
- Click
buildand thentest, your tests.js script will run.
One you are happy with your code copy the content of your tests.js files and edit the using your local text editor open the tests.js file on that particular exercise. tests.js files in this repository. It will automatically create a pull request for you.