Skip to content

Comoque1/sanity-node-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sanity node app

The project's goal is to provide API test coverage for the eMerchantPay ruby app.

Environment setup

$ sudo apt-get install nodejs npm

Tested application

Project structure

  • config.json: parameter storage - 'port', 'token', etc.
  • config.js: provider for the parameters defined in config.json.
  • api [folder]: mirrors the tested application API, as specific request files.
    • payment-transaction-requests.jsnote: contains functions that wrap the request logic for sale, void transactions.
  • test/sale-payment-transaction.spec.js: tests, that exam 'sale' transactions
  • test/void-payment-transaction.spec.js: tests, that exam 'void' transactions
  • test-design/test-design.xlsx - file with defined scenarious to be automated

Technologies

  • mocha: test runner
  • chai: assertion framework
  • request: simplifies HTTP calls
  • babelnote: enables ES6 syntax (import vs require, etc.)

Run

To run the tests do npm i and npm test

note - got external help for the marked areas

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors