Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remove unnecessary conversions from tests #370

Merged
merged 1 commit into from
Dec 21, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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