1.1 KiB
1.1 KiB
Snapshot report for tests/redirect.test.ts
The actual snapshot is saved in redirect.test.ts.snap
.
Generated by AVA.
parseRedirect
Class HostnameRedirect
HostnameRedirect {
parameters: {
hostname: 'example.org',
matcherType: 'hostname',
redirectType: 'hostname',
toMatch: 'example.com',
},
}
Class SimpleRedirect
SimpleRedirect {
parameters: {
matcherType: 'hostname',
redirectType: 'simple',
target: 'https://example.org/simple',
toMatch: 'example.com',
},
}
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',
}
2 SimpleRedirect
{
original: 'https://example.com',
redirected: 'https://example.org/simple',
}
3 SimpleRedirect
{
original: 'https://example.com/path',
redirected: 'https://example.org/simple',
}