Here is my mocha script. I am hitting an api and in that api, i will send the result. I need to print the results obtained. While i print it, it is always saying as undefined. How can i do this.
var assert = require('assert');
console.log('Starting Test...')
describe('api', function() {
describe('GET /getStore', function(data) {
it('respond with an array of users', function() {
console.log(data);
});
});
});
via SA__
No comments:
Post a Comment