✅ Added index pages tests for page use case
This commit is contained in:
parent
e419998759
commit
1b34201176
|
@ -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`)},
|
||||
|
|
Loading…
Reference in New Issue