Remove the LF in the testdata/template/raw.tmpl, because if set the git config core.autocrlf=true, will append CR to the raw.tmpl automatically, then test is failed on Windows

This commit is contained in:
mstmdev 2022-03-24 16:15:58 +08:00
parent 393b0dc287
commit 8a097aa58e
2 changed files with 3 additions and 3 deletions

View File

@ -202,7 +202,7 @@ func TestLoadHTMLGlobFromFuncMap(t *testing.T) {
}
resp, _ := ioutil.ReadAll(res.Body)
assert.Equal(t, "Date: 2017/07/01\n", string(resp))
assert.Equal(t, "Date: 2017/07/01", string(resp))
}
func init() {
@ -320,7 +320,7 @@ func TestLoadHTMLFilesFuncMap(t *testing.T) {
}
resp, _ := ioutil.ReadAll(res.Body)
assert.Equal(t, "Date: 2017/07/01\n", string(resp))
assert.Equal(t, "Date: 2017/07/01", string(resp))
}
func TestAddRoute(t *testing.T) {

View File

@ -1 +1 @@
Date: {[{.now | formatAsDate}]}
Date: {[{.now | formatAsDate}]}