mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-18 21:11:19 +02:00
helpers: Fix minor typo in content_test.go
This commit is contained in:
@@ -354,7 +354,7 @@ func TestExtractTOCNormalContent(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestExtractTOCGreaterThanSeventy(t *testing.T) {
|
||||
content := []byte("<nav>\n<ul>\nTOC This is a very long content which will definitly be greater than seventy, I promise you that.<li><a href=\"#")
|
||||
content := []byte("<nav>\n<ul>\nTOC This is a very long content which will definitely be greater than seventy, I promise you that.<li><a href=\"#")
|
||||
|
||||
actualTocLessContent, actualToc := ExtractTOC(content)
|
||||
//Because the start of Toc is greater than 70+startpoint of <li> content and empty TOC will be returned
|
||||
|
Reference in New Issue
Block a user