@meltwater/mlabs-http
Version:
HTTP client wrapper around Got.
64 lines (40 loc) • 819 B
Markdown
# Snapshot report for `lib/factory.spec.js`
The actual snapshot is saved in `factory.spec.js.snap`.
Generated by [AVA](https://avajs.dev).
## getGotOptions: default
> Snapshot 1
{}
## getGotOptions: prefixUrl
> Snapshot 1
{
prefixUrl: 'https://example.com/foo',
}
## getGotOptions: origin
> Snapshot 1
{
prefixUrl: 'https://example.com',
}
## getGotOptions: path
> Snapshot 1
{
prefixUrl: 'https://example.com/bar',
}
## getGotOptions: prefixUrl override
> Snapshot 1
{
prefixUrl: 'https://test.examples.com',
}
## getGotOptions: bearerToken
> Snapshot 1
{
headers: {
authorization: 'Bearer the-token',
},
}
## getGotOptions: hooks
> Snapshot 1
{
hooks: {
beforeRequest: [],
},
}