api documentation for supertest (v3.0.0)

SuperAgent driven library for testing HTTP servers

table of contents

  1. module supertest
    1. function supertest (app)
    2. function supertest.Test (app, method, path)
    3. function supertest.agent (app, options)
    4. object supertest.Test.prototype
    5. object supertest.agent.prototype
  2. module supertest.Test
    1. function supertest.Test (app, method, path)
  3. module supertest.Test.prototype
    1. function supertest.Test.prototype._assertBody (body, res)
    2. function supertest.Test.prototype._assertFunction (check, res)
    3. function supertest.Test.prototype._assertHeader (header, res)
    4. function supertest.Test.prototype._assertStatus (status, res)
    5. function supertest.Test.prototype.assert (resError, res, fn)
    6. function supertest.Test.prototype.end (fn)
    7. function supertest.Test.prototype.expect (a, b, c)
    8. function supertest.Test.prototype.serverAddress (app, path)
  4. module supertest.agent
    1. function supertest.agent (app, options)
  5. module supertest.agent.prototype
    1. function supertest.agent.prototype.acl (url, fn)
    2. function supertest.agent.prototype.bind (url, fn)
    3. function supertest.agent.prototype.checkout (url, fn)
    4. function supertest.agent.prototype.connect (url, fn)
    5. function supertest.agent.prototype.copy (url, fn)
    6. function supertest.agent.prototype.del (url, fn)
    7. function supertest.agent.prototype.delete (url, fn)
    8. function supertest.agent.prototype.get (url, fn)
    9. function supertest.agent.prototype.head (url, fn)
    10. function supertest.agent.prototype.link (url, fn)
    11. function supertest.agent.prototype.lock (url, fn)
    12. function supertest.agent.prototype.m-search (url, fn)
    13. function supertest.agent.prototype.merge (url, fn)
    14. function supertest.agent.prototype.mkactivity (url, fn)
    15. function supertest.agent.prototype.mkcalendar (url, fn)
    16. function supertest.agent.prototype.mkcol (url, fn)
    17. function supertest.agent.prototype.move (url, fn)
    18. function supertest.agent.prototype.notify (url, fn)
    19. function supertest.agent.prototype.options (url, fn)
    20. function supertest.agent.prototype.patch (url, fn)
    21. function supertest.agent.prototype.post (url, fn)
    22. function supertest.agent.prototype.propfind (url, fn)
    23. function supertest.agent.prototype.proppatch (url, fn)
    24. function supertest.agent.prototype.purge (url, fn)
    25. function supertest.agent.prototype.put (url, fn)
    26. function supertest.agent.prototype.rebind (url, fn)
    27. function supertest.agent.prototype.report (url, fn)
    28. function supertest.agent.prototype.search (url, fn)
    29. function supertest.agent.prototype.subscribe (url, fn)
    30. function supertest.agent.prototype.trace (url, fn)
    31. function supertest.agent.prototype.unbind (url, fn)
    32. function supertest.agent.prototype.unlink (url, fn)
    33. function supertest.agent.prototype.unlock (url, fn)
    34. function supertest.agent.prototype.unsubscribe (url, fn)

module supertest

function supertest (app)

function supertest.Test (app, method, path)

function supertest.agent (app, options)

module supertest.Test

function supertest.Test (app, method, path)

module supertest.Test.prototype

function supertest.Test.prototype._assertBody (body, res)

function supertest.Test.prototype._assertFunction (check, res)

function supertest.Test.prototype._assertHeader (header, res)

function supertest.Test.prototype._assertStatus (status, res)

function supertest.Test.prototype.assert (resError, res, fn)

function supertest.Test.prototype.end (fn)

function supertest.Test.prototype.expect (a, b, c)

function supertest.Test.prototype.serverAddress (app, path)

module supertest.agent

function supertest.agent (app, options)

module supertest.agent.prototype

function supertest.agent.prototype.acl (url, fn)

function supertest.agent.prototype.bind (url, fn)

function supertest.agent.prototype.checkout (url, fn)

function supertest.agent.prototype.connect (url, fn)

function supertest.agent.prototype.copy (url, fn)

function supertest.agent.prototype.del (url, fn)

function supertest.agent.prototype.delete (url, fn)

function supertest.agent.prototype.get (url, fn)

function supertest.agent.prototype.head (url, fn)

function supertest.agent.prototype.link (url, fn)

function supertest.agent.prototype.lock (url, fn)

function supertest.agent.prototype.m-search (url, fn)

function supertest.agent.prototype.merge (url, fn)

function supertest.agent.prototype.mkactivity (url, fn)

function supertest.agent.prototype.mkcalendar (url, fn)

function supertest.agent.prototype.mkcol (url, fn)

function supertest.agent.prototype.move (url, fn)

function supertest.agent.prototype.notify (url, fn)

function supertest.agent.prototype.options (url, fn)

function supertest.agent.prototype.patch (url, fn)

function supertest.agent.prototype.post (url, fn)

function supertest.agent.prototype.propfind (url, fn)

function supertest.agent.prototype.proppatch (url, fn)

function supertest.agent.prototype.purge (url, fn)

function supertest.agent.prototype.put (url, fn)

function supertest.agent.prototype.rebind (url, fn)

function supertest.agent.prototype.report (url, fn)

function supertest.agent.prototype.search (url, fn)

function supertest.agent.prototype.subscribe (url, fn)

function supertest.agent.prototype.trace (url, fn)

function supertest.agent.prototype.unbind (url, fn)

function supertest.agent.prototype.unlink (url, fn)

function supertest.agent.prototype.unlock (url, fn)

function supertest.agent.prototype.unsubscribe (url, fn)

[ this document was created with utility2 ]