Returns a URL, extracted from a server.
URL address
Attaches a callback for only the rejection of the Promise.
The callback to execute when the Promise is rejected.
A Promise for the completion of the callback.
Defer invoking superagent's .end()
until
the server is listening.
for chaining
Expectations:
.expect(fn)
for chaining
Expectations:
.expect(200) .expect(200, fn)
for chaining
Expectations:
.expect(200, body) .expect(200, body, fn)
for chaining
Expectations:
.expect('Some body') .expect(/Some body/i) .expect('Some body', fn)
for chaining
Expectations:
.expect('Content-Type', 'application/json') .expect('Content-Type', /application/g', fn)
for chaining
Attaches callbacks for the resolution and/or rejection of the Promise.
The callback to execute when the Promise is resolved.
The callback to execute when the Promise is rejected.
A Promise for the completion of which ever callback is executed.
Generated using TypeDoc
The SuperDeno Test object extends the methods provided by superagent to provide a high-level abstraction for testing HTTP, while still allowing you to drop down to the lower-level API provided by superagent.