🏷️ Added redirects params in TestSite output
This commit is contained in:
parent
739a38eb4c
commit
8db047603d
|
@ -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,
|
||||
}},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue