create out dir in tests

This commit is contained in:
Kirill Zhuravlev 2023-02-26 01:40:39 +01:00 committed by Avelino
parent 7713914b96
commit e3363794a1
No known key found for this signature in database
GPG Key ID: B345B4D52E98180A

View File

@ -101,6 +101,8 @@ func TestSeparator(t *testing.T) {
}
func TestRenderIndex(t *testing.T) {
requireNoErr(t, mkdirAll(outDir), "output dir should exists")
err := renderIndex(readmePath, outIndexFile)
requireNoErr(t, err, "html should be rendered")
}