lazy ass programmer

node v6.17.1
version: 2.0.0
endpointsharetweet
const mocha = require ('mocha'); const should = require ('should'); const supertest = require('supertest');   let baseUrl = supertest("https://reqres.in/"); let listUserEndPoint = 'api/users?page=1';  baseUrl.get(listUserEndPoint) .set('Content-Type', 'application/json') // Setting the content type as header   .then( (a,b,c)=> {     console.log(a.headers); console.log(a.body); console.log(a.redirect) ; return a;     }         )    
Loading…

no comments

    sign in to comment