Skip to content

Commit

Permalink
Fix {{date}} helper test (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-menu committed May 24, 2023
1 parent b71a74e commit 072fae2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/adapter/handlebars/handlebars_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 072fae2

Please sign in to comment.