December 2017
Beginner
372 pages
10h 32m
English
This is where we execute our test, and this is where we expect to assert our test results. Let's look at our first test case, should sort the task array. This test case will pass the task array that we created in our beforeEach function and expect the array to get sorted by the title. This function also defines the expected array output, which is then compared with the returned value from the transform function using a toEqual matcher.
And that's it. This is all we have to do to write a test case. Isn't it simple?
Read now
Unlock full access