Questions tagged as 'chai'

0
answers

travis does not generate coverage for a project node

I'm practicing data structures in typescript and in my place I get the coverage report without problems but in travis-ci it does not appear to me. Will there be any configuration problems with node or a travis own problem? I...
asked by 25.02.2018 / 21:30
0
answers

Mocha / Chai: Unable to do login testing

I am writing tests for a login service. The test must pass if the login is correct. Before each test my test database is cleaned. That's why I first created a user and then I try to login. The expected behavior is to receive status 200 when the...
asked by 14.12.2018 / 12:33
1
answer

Perform a unit test in NodeJs. With mocha and chai;

I am performing a unit test on a function, and what I want is to simulate the communication with the DTA (that does not communicate with the database); For example: This is the function to which I want to perform the test ... public add(a, b):...
asked by 17.08.2018 / 16:51