mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-22 13:39:26 +00:00
helpers: Fix minor typo in content_test.go
This commit is contained in:
parent
0a768ec95f
commit
4c4ce55217
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue