Fix `{{date}}` helper test (#324)

pull/339/head
Mickaël Menu 12 months ago committed by GitHub
parent b71a74eabc
commit 072fae2f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -243,8 +243,7 @@ func TestFormatDateHelper(t *testing.T) {
func TestDateHelper(t *testing.T) {
context := map[string]interface{}{"now": time.Date(2009, 11, 17, 20, 34, 58, 651387237, time.UTC)}
localOffsetAndTZ := time.Now().Format("-0700 MST")
testString(t, "{{date \"2009-11-17T20:34:58\"}}", context, "2009-11-17 20:34:58 "+localOffsetAndTZ)
testString(t, "{{format-date (date \"2009-11-17T20:34:58\") 'timestamp'}}", context, "200911172034")
}
func TestShellHelper(t *testing.T) {

Loading…
Cancel
Save