Sarraf API
Preparing search index...
testing/src
MockFetch
Interface MockFetch
interface
MockFetch
{
calls
:
MockRequest
[]
;
callsTo
(
method
:
string
,
pathOrRegex
:
string
|
RegExp
)
:
MockRequest
[]
;
reset
()
:
void
;
(
input
:
string
,
init
:
RequestInit
)
:
Promise
<
Response
>
;
}
Hierarchy
FetchLike
MockFetch
MockFetch
(
input
:
string
,
init
:
RequestInit
)
:
Promise
<
Response
>
Parameters
input
:
string
init
:
RequestInit
Returns
Promise
<
Response
>
Index
Properties
calls
Methods
calls
To
reset
Properties
calls
calls
:
MockRequest
[]
Methods
calls
To
callsTo
(
method
:
string
,
pathOrRegex
:
string
|
RegExp
)
:
MockRequest
[]
Calls matching a method and path.
Parameters
method
:
string
pathOrRegex
:
string
|
RegExp
Returns
MockRequest
[]
reset
reset
()
:
void
Returns
void
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
calls
Methods
calls
To
reset
Sarraf API
Loading...
Calls matching a method and path.