]> git.maquefel.me Git - brevno-suite/hugo/commitdiff
Annotate test assertions
authorJoe Mooring <joe.mooring@veriphor.com>
Thu, 22 Dec 2022 16:39:42 +0000 (08:39 -0800)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 22 Dec 2022 17:53:12 +0000 (18:53 +0100)
hugolib/integration_test.go

index de8a6179b335fb14bcbc6cefd88f550f0d03cff9..417fe212993b1de71b60552f77a0a77a446be02a 100644 (file)
@@ -65,20 +65,25 @@ tags: ['T1']
        )
        b.Build()
 
+       // Kind home
+       b.AssertFileContent("public/en/index.html",
+               "<ul><li>Issue-9073-en</li></ul>",
+       )
+       // Kind section
        b.AssertFileContent("public/en/posts/index.html",
                "<ul><li>Posts-en</li></ul>",
        )
+       // Kind page
        b.AssertFileContent("public/en/posts/p1/index.html",
                "<ul><li>P1-en</li></ul>",
        )
+       // Kind taxonomy
        b.AssertFileContent("public/en/tags/index.html",
                "<ul><li>Tags-en</li></ul>",
        )
+       // Kind term
        b.AssertFileContent("public/en/tags/t1/index.html",
                "<ul><li>T1-en</li></ul>",
        )
-       b.AssertFileContent("public/en/index.html",
-               "<ul><li>Issue-9073-en</li></ul>",
-       )
 
 }