This is an exercise about automated tests.
1 - Clone this repository:
git clone 2 - Install all dependencies:
npm install3- To test application:
npm run test GET:/fruits
✓ Deve retornar a lista de todas as frutas (42 ms)
✓ Deve retornar um array vazio (4 ms)
GET:/fruits/:id
✓ Deve retornar o objeto fruit de id solicitado (3 ms)
✓ Deve retornar status 404 (37 ms)
POST:/fruits
✓ Deve retornar status 201 (17 ms)
✓ Deve retornar status 422 (4 ms)
✓ Deve retornar status 201 (14 ms)
Test Suites: 1 passed, 1 total
Tests: 7 passed, 7 total