hkaraoglu/node-commerce

Implementation of HTTP tests

Closed this issue · 0 comments

HTTP tests will be implemented by using supertest package. Stages:

  • HTTP test files will be created for services.

  • Tests folder will be created

  • Test Assertions:

  • HTTP Status Code == 200

  • ServiceResult -> success

  • ServiceResult -> errorCode

  • ServiceResult->data == {{DUMMY_JSON_DATA}} (In some services)