Skip to content

rook2pawn/supertest-light

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

supertest-light

supertest-light is

  • an ultra-minimalist take on supertest
  • much smaller
  • and removes idiosyncratic aspects such as expect

usage

Example

(async () => {
  const res = await request(app)
    .set("User-Agent", "Supertest-Light")
    .get("/user/bart/messages");

  assert.equal(res.text, "Hello bart!");
})();

Note that .get, .post, and .send are all terminals that return a promise.

About

minimal take on supertest

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors