chore: remove unnecessary conversions from tests (#370)

This commit is contained in:
Håvard Anda Estensen 2023-12-21 19:42:56 +01:00 committed by GitHub
parent 9980931f80
commit 4d0edcd99c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ func TestNumericDate(t *testing.T) {
b, _ := json.Marshal(s)
if raw != string(b) {
t.Errorf("Serialized format of numeric date mismatch. Expecting: %s Got: %s", string(raw), string(b))
t.Errorf("Serialized format of numeric date mismatch. Expecting: %s Got: %s", raw, string(b))
}
jwt.TimePrecision = oldPrecision
@ -46,7 +46,7 @@ func TestSingleArrayMarshal(t *testing.T) {
}
if expected != string(b) {
t.Errorf("Serialized format of string array mismatch. Expecting: %s Got: %s", string(expected), string(b))
t.Errorf("Serialized format of string array mismatch. Expecting: %s Got: %s", expected, string(b))
}
jwt.MarshalSingleStringAsArray = true
@ -60,7 +60,7 @@ func TestSingleArrayMarshal(t *testing.T) {
}
if expected != string(b) {
t.Errorf("Serialized format of string array mismatch. Expecting: %s Got: %s", string(expected), string(b))
t.Errorf("Serialized format of string array mismatch. Expecting: %s Got: %s", expected, string(b))
}
}