🏷️ Added redirects params in TestSite output

This commit is contained in:
Maxim Lebedev 2023-12-09 12:43:04 +06:00
parent 739a38eb4c
commit 8db047603d
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 10 additions and 0 deletions

View File

@ -62,6 +62,16 @@ func TestSite(tb testing.TB) *Site {
"X-Testing": `sample-text`,
},
}},
"redirects": []any{map[string]any{
"from": "/foo/bar",
"to": "/bar/foo",
"status": 302,
}, map[string]any{
"from": "/foo",
"to": "https://example.com/",
"status": 301,
"force": true,
}},
},
},
}