Skip to content

Commit 73ea7e5

Browse files
committed
Fix incorrect field name, correct mistake where dates were doubled quoted
1 parent af0890b commit 73ea7e5

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

github/actions_variables_test.go

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,12 +674,14 @@ func TestActionVariable_Marshal(t *testing.T) {
674674
want := fmt.Sprintf(`{
675675
"name": "n",
676676
"value": "v",
677-
"created_at": "%s",
678-
"updated_at": "%s",
677+
"created_at": %s,
678+
"updated_at": %s,
679679
"visibility": "v",
680680
"selected_repositories_url": "s",
681-
"selected_repositories_ids": [1,2,3]
681+
"selected_repository_ids": [1,2,3]
682682
}`, referenceTimeStr, referenceTimeStr)
683683

684+
fmt.Println(want)
685+
684686
testJSONMarshal(t, av, want)
685687
}

0 commit comments

Comments
 (0)