Code Monkey home page Code Monkey logo

pulseid_assignment's Introduction

pulseId_assignment

Routes and Journeys -

Similar as given in assignment document

How to run coverage and testing ->

npm test for testing

npm run testCoverage for coverage report

Coverage Report

PASS  tests/index.test.js (5.179 s)
  Connectivity Test
    √ POST /ruleset (214 ms)
    √ POST /transaction (43 ms)
    √ POST /transaction - duplicate (26 ms)
    √ GET /ruleset (24 ms)
    √ GET /transaction (17 ms)
    √ GET /cashback (27 ms)
    √ GET /abc - invalid Route (8 ms)
    √ POST /transaction - invalid body (22 ms)

  Test Case 1
    √ POST /ruleset 1 (29 ms)
    √ POST /ruleset 2 (34 ms)
    √ POST /transaction 1 (22 ms)
    √ POST /transaction 2 (29 ms)
    √ POST /transaction 3 (27 ms)
    √ GET /cashback (26 ms)
    √ POST /ruleset 3 (bud) (23 ms)
    √ POST /transaction 4 (34 ms)
    √ POST /transaction 5 (23 ms)
    √ POST /transaction 6 (25 ms)
    √ GET /cashback (45 ms)
File % Stmts % Branch % Funcs % Lines Uncovered Line #s
All files 94.26 79.41 100 96.63
pulseId_assignment 100 100 100 100
index.js 100 100 100 100
pulseId_assignment/Controllers 90.54 78.12 100 94.36
Cashback.controller.js 90.9 78.57 100 96.77 93
Ruleset.controller.js 85 50 100 89.47 15,72
Transaction.controller.js 95.23 100 100 95.23 14
pulseId_assignment/Models 100 100 100 100
Ruleset.model.js 100 100 100 100
Transaction.model.js 100 100 100 100
pulseId_assignment/Routes 100 100 100 100
Cashback.route.js 100 100 100 100
RuleSet.route.js 100 100 100 100
Transaction.route.js 100 100 100 100
Test Suites: 1 passed, 1 total
Tests:       19 passed, 19 total
Snapshots:   0 total
Time:        5.653 s
Ran all test suites.

pulseid_assignment's People

Contributors

utkkarsh avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.