mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
parent
eb038cfa0a
commit
7930d2132a
7 changed files with 35 additions and 85 deletions
|
@ -98,17 +98,16 @@ func TestSiteBuildErrors(t *testing.T) {
|
|||
a.assertLineNumber(2, err)
|
||||
},
|
||||
},
|
||||
// TODO(bep) 2errors
|
||||
/* {
|
||||
name: "Shortode execute failed",
|
||||
fileType: shortcode,
|
||||
fileFixer: func(content string) string {
|
||||
return strings.Replace(content, ".Title", ".Titles", 1)
|
||||
},
|
||||
assertBuildError: func(a testSiteBuildErrorAsserter, err error) {
|
||||
a.assertLineNumber(2, err)
|
||||
},
|
||||
},*/
|
||||
{
|
||||
name: "Shortode execute failed",
|
||||
fileType: shortcode,
|
||||
fileFixer: func(content string) string {
|
||||
return strings.Replace(content, ".Title", ".Titles", 1)
|
||||
},
|
||||
assertBuildError: func(a testSiteBuildErrorAsserter, err error) {
|
||||
a.assertLineNumber(25, err)
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
name: "Panic in template Execute",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue