mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-13 22:16:02 +00:00
helpers: Fix minor typo in content_test.go
This commit is contained in:
1 parent
0a768ec95f
commit
4c4ce55217
1 file changed
+1
-1
@@ -354,7 +354,7 @@ func TestExtractTOCNormalContent(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestExtractTOCGreaterThanSeventy(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)
|
actualTocLessContent, actualToc := ExtractTOC(content)
|
||||||
//Because the start of Toc is greater than 70+startpoint of <li> content and empty TOC will be returned
|
//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