mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05: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) {
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue