Added index pages tests for page use case

This commit is contained in:
Maxim Lebedev 2023-11-08 07:34:04 +06:00
parent e419998759
commit 1b34201176
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,8 @@ func TestDo(t *testing.T) {
input string
expect []byte
}{
"index": {input: "/", expect: []byte(`index.md`)},
"index-ext": {input: "/index.html", expect: []byte(`index.md`)},
"file": {input: "/file", expect: []byte(`file.md`)},
"file-slash": {input: "/file/", expect: []byte(`file.md`)},
"file-ext": {input: "/file.html", expect: []byte(`file.md`)},