We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3c22849 + 17fae92 commit 28b99ecCopy full SHA for 28b99ec
json_parse_node_test.go
@@ -234,13 +234,13 @@ func TestParsingTime(t *testing.T) {
234
assert.Nil(t, err)
235
time1, err := someProp.GetTimeValue()
236
237
- assert.Contains(t, time1.String(), "2023-07-12 08:54:24 +")
+ assert.Equal(t, "2023-07-12 08:54:24", time1.Format("2006-01-02 15:04:05"))
238
239
someProp2, err := parseNode.GetChildNode("withZone")
240
241
time2, err := someProp2.GetTimeValue()
242
243
- assert.Contains(t, time2.String(), "2023-07-12 09:54:24 +")
+ assert.Equal(t, "2023-07-12 09:54:24", time2.Format("2006-01-02 15:04:05"))
244
}
245
246
func TestThrowErrorOfPrimitiveType(t *testing.T) {
0 commit comments