Skip to content

Commit 4d0edcd

Browse files
authored
chore: remove unnecessary conversions from tests (#370)
1 parent 9980931 commit 4d0edcd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Diff for: types_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func TestNumericDate(t *testing.T) {
2828
b, _ := json.Marshal(s)
2929

3030
if raw != string(b) {
31-
t.Errorf("Serialized format of numeric date mismatch. Expecting: %s Got: %s", string(raw), string(b))
31+
t.Errorf("Serialized format of numeric date mismatch. Expecting: %s Got: %s", raw, string(b))
3232
}
3333

3434
jwt.TimePrecision = oldPrecision
@@ -46,7 +46,7 @@ func TestSingleArrayMarshal(t *testing.T) {
4646
}
4747

4848
if expected != string(b) {
49-
t.Errorf("Serialized format of string array mismatch. Expecting: %s Got: %s", string(expected), string(b))
49+
t.Errorf("Serialized format of string array mismatch. Expecting: %s Got: %s", expected, string(b))
5050
}
5151

5252
jwt.MarshalSingleStringAsArray = true
@@ -60,7 +60,7 @@ func TestSingleArrayMarshal(t *testing.T) {
6060
}
6161

6262
if expected != string(b) {
63-
t.Errorf("Serialized format of string array mismatch. Expecting: %s Got: %s", string(expected), string(b))
63+
t.Errorf("Serialized format of string array mismatch. Expecting: %s Got: %s", expected, string(b))
6464
}
6565
}
6666

0 commit comments

Comments
 (0)