Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
supertest
Dynamic module supertest
Index
Functions
supertest
Functions
supertest
(
app
:
any
)
:
SuperTest
Parameters
app:
any
Returns
SuperTest
SuperTest
:
SuperTest
public
checkout
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
copy
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
del
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
get
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
head
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
lock
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
merge
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
mkactivity
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
mkcol
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
move
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
notify
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
options
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
patch
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
post
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
propfind
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
proppatch
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
put
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
report
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
subscribe
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
trace
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
unlock
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
public
unsubscribe
(
url
:
string
)
:
Test
Parameters
url:
string
Returns
Test
Test
:
Test
public
url
:
string
public
abort
(
)
public
attach
(
field
:
string
, file
:
string
, filename
:
string
)
:
Request
Parameters
field:
string
file:
string
filename:
string
Returns
Request
public
auth
(
user
:
string
, name
:
string
)
:
Request
Parameters
user:
string
name:
string
Returns
Request
public
buffer
(
val
:
boolean
)
:
Request
Parameters
val:
boolean
Returns
Request
public
clearTimeout
(
)
:
Request
Returns
Request
public
end
(
callback
?:
(err: Error, res: "superagent".Response) => void
)
:
Request
Parameters
callback?:
(err: Error, res: "superagent".Response) => void
optional
Returns
Request
public
expect
(
status
:
number
, callback
?:
(err: Error, res: "superagent".Response) => void
)
:
Test
Parameters
status:
number
callback?:
(err: Error, res: "superagent".Response) => void
optional
Returns
Test
public
expect
(
status
:
number
, body
:
string
, callback
?:
(err: Error, res: "superagent".Response) => void
)
:
Test
Parameters
status:
number
body:
string
callback?:
(err: Error, res: "superagent".Response) => void
optional
Returns
Test
public
expect
(
body
:
string
, callback
?:
(err: Error, res: "superagent".Response) => void
)
:
Test
Parameters
body:
string
callback?:
(err: Error, res: "superagent".Response) => void
optional
Returns
Test
public
expect
(
body
:
RegExp
, callback
?:
(err: Error, res: "superagent".Response) => void
)
:
Test
Parameters
body:
RegExp
callback?:
(err: Error, res: "superagent".Response) => void
optional
Returns
Test
public
expect
(
body
:
Object
, callback
?:
(err: Error, res: "superagent".Response) => void
)
:
Test
Parameters
body:
Object
callback?:
(err: Error, res: "superagent".Response) => void
optional
Returns
Test
public
expect
(
field
:
string
, val
:
string
, callback
?:
(err: Error, res: "superagent".Response) => void
)
:
Test
Parameters
field:
string
val:
string
callback?:
(err: Error, res: "superagent".Response) => void
optional
Returns
Test
public
expect
(
field
:
string
, val
:
RegExp
, callback
?:
(err: Error, res: "superagent".Response) => void
)
:
Test
Parameters
field:
string
val:
RegExp
callback?:
(err: Error, res: "superagent".Response) => void
optional
Returns
Test
public
field
(
name
:
string
, val
:
string
)
:
Request
Parameters
name:
string
val:
string
Returns
Request
public
get
(
field
:
string
)
:
string
Parameters
field:
string
Returns
string
public
part
(
)
:
Request
Returns
Request
public
pipe
(
stream
:
WritableStream
, options
?:
Object
)
:
Writable
Parameters
stream:
WritableStream
options?:
Object
optional
Returns
Writable
public
query
(
val
:
Object
)
:
Test
Parameters
val:
Object
Returns
Test
public
redirects
(
n
:
number
)
:
Request
Parameters
n:
number
Returns
Request
public
send
(
data
:
string
)
:
Test
Parameters
data:
string
Returns
Test
public
send
(
data
:
Object
)
:
Test
Parameters
data:
Object
Returns
Test
public
serverAddress
(
app
:
any
, path
:
string
)
:
string
Parameters
app:
any
path:
string
Returns
string
public
set
(
field
:
string
, val
:
string
)
:
Test
Parameters
field:
string
val:
string
Returns
Test
public
set
(
field
:
Object
)
:
Test
Parameters
field:
Object
Returns
Test
public
timeout
(
ms
:
number
)
:
Request
Parameters
ms:
number
Returns
Request
public
type
(
val
:
string
)
:
Request
Parameters
val:
string
Returns
Request
public
write
(
data
:
string
, encoding
:
string
)
:
boolean
Parameters
data:
string
encoding:
string
Returns
boolean
public
write
(
data
:
Buffer
, encoding
:
string
)
:
boolean
Parameters
data:
Buffer
encoding:
string
Returns
boolean
agent
(
)
:
Agent
Returns
Agent
Globals
NodeJS
assert
buffer
child_process
cluster
crypto
dgram
dns
domain
events
fs
http
https
net
os
path
punycode
querystring
readline
repl
stream
string_decoder
superagent
supertest
tls
tty
url
util
vm
zlib
supertest