2022-10-05 17:08:17 +00:00
|
|
|
# Snapshot report for `tests/redirect.test.ts`
|
|
|
|
|
|
|
|
The actual snapshot is saved in `redirect.test.ts.snap`.
|
|
|
|
|
|
|
|
Generated by [AVA](https://avajs.dev).
|
|
|
|
|
|
|
|
## parseRedirect
|
|
|
|
|
|
|
|
> Class HostnameRedirect
|
|
|
|
|
|
|
|
HostnameRedirect {
|
|
|
|
parameters: {
|
2022-10-26 12:55:04 +00:00
|
|
|
enabled: true,
|
2022-10-27 19:13:02 +00:00
|
|
|
id: 1,
|
2022-10-18 19:43:50 +00:00
|
|
|
matcherType: 'hostname',
|
2022-10-20 14:22:57 +00:00
|
|
|
matcherValue: 'example.com',
|
2022-10-18 20:21:55 +00:00
|
|
|
redirectType: 'hostname',
|
2022-10-20 14:22:57 +00:00
|
|
|
redirectValue: 'example.org',
|
2022-10-05 17:08:17 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2022-10-18 17:02:02 +00:00
|
|
|
> Class SimpleRedirect
|
|
|
|
|
|
|
|
SimpleRedirect {
|
|
|
|
parameters: {
|
2022-10-26 12:55:04 +00:00
|
|
|
enabled: true,
|
2022-10-27 19:13:02 +00:00
|
|
|
id: 2,
|
2022-10-18 19:43:50 +00:00
|
|
|
matcherType: 'hostname',
|
2022-10-20 14:22:57 +00:00
|
|
|
matcherValue: 'example.com',
|
2022-10-18 20:21:55 +00:00
|
|
|
redirectType: 'simple',
|
2022-10-20 14:22:57 +00:00
|
|
|
redirectValue: 'https://example.org/simple',
|
2022-10-18 17:02:02 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2022-11-02 10:10:29 +00:00
|
|
|
> Class RegexRedirect
|
|
|
|
|
|
|
|
RegexRedirect {
|
|
|
|
parameters: {
|
|
|
|
enabled: true,
|
|
|
|
id: 3,
|
|
|
|
matcherType: 'regex',
|
|
|
|
matcherValue: '(.+)\\.com',
|
|
|
|
redirectType: 'regex',
|
|
|
|
redirectValue: '$1.org',
|
|
|
|
},
|
|
|
|
}
|
|
|
|
|
2022-10-05 17:08:17 +00:00
|
|
|
## Redirect.redirect
|
|
|
|
|
|
|
|
> 0 HostnameRedirect
|
|
|
|
|
|
|
|
{
|
|
|
|
original: 'https://example.com',
|
|
|
|
redirected: 'https://example.org/',
|
|
|
|
}
|
|
|
|
|
|
|
|
> 1 HostnameRedirect
|
|
|
|
|
|
|
|
{
|
|
|
|
original: 'https://example.com/path#hash?query=test',
|
|
|
|
redirected: 'https://example.org/path#hash?query=test',
|
|
|
|
}
|
2022-10-18 17:02:02 +00:00
|
|
|
|
|
|
|
> 2 SimpleRedirect
|
|
|
|
|
|
|
|
{
|
|
|
|
original: 'https://example.com',
|
|
|
|
redirected: 'https://example.org/simple',
|
|
|
|
}
|
|
|
|
|
|
|
|
> 3 SimpleRedirect
|
|
|
|
|
|
|
|
{
|
|
|
|
original: 'https://example.com/path',
|
|
|
|
redirected: 'https://example.org/simple',
|
|
|
|
}
|
2022-11-02 10:10:29 +00:00
|
|
|
|
|
|
|
> 4 RegexRedirect
|
|
|
|
|
|
|
|
{
|
|
|
|
original: 'https://example.com',
|
|
|
|
redirected: 'https://example.org/',
|
|
|
|
}
|
|
|
|
|
|
|
|
> 5 RegexRedirect
|
|
|
|
|
|
|
|
{
|
|
|
|
original: 'https://example.com/',
|
|
|
|
redirected: 'https://example.org/',
|
|
|
|
}
|