Skip to content

Repository files navigation

Automated Tests

This is an exercise about automated tests.

Technologies

How to run tests locally

1 - Clone this repository:

  git clone 

2 - Install all dependencies:

  npm install

3- To test application:

  npm run test

Tests

  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

About

This is an exercise about automated tests.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages