Skip to content

Commit

Permalink
chore: remove unnecessary conversions from tests (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
estensen authored Dec 21, 2023
1 parent 9980931 commit 4d0edcd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions types_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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))
}
}

Expand Down

0 comments on commit 4d0edcd

Please sign in to comment.