Skip to content

Commit

Permalink
add index to subtest name to disambiguate tests
Browse files Browse the repository at this point in the history
  • Loading branch information
julio-lopez committed Jan 8, 2024
1 parent dd91eca commit 0e1cbc2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/adapter/handlebars/handlebars_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,8 @@ func TestFormatDateHelperElapsedViaTimeMultiplication(t *testing.T) {
},
}

for _, tc := range cases {
t.Run(tc.want, func(t *testing.T) {
for i, tc := range cases {
t.Run(fmt.Sprintf("%d_%s", i, tc.want), func(t *testing.T) {
templateContext := map[string]interface{}{"now": time.Now().Add(-tc.elapsed)}

testString(t, "{{format-date now 'elapsed'}}", templateContext, tc.want)
Expand Down

0 comments on commit 0e1cbc2

Please sign in to comment.