You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: JWTDecodeTests/JWTDecodeSpec.swift
+67-6Lines changed: 67 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -147,7 +147,18 @@ class JWTDecodeSpec: QuickSpec {
147
147
148
148
describe("custom claim"){
149
149
beforeEach{
150
-
sut =jwt(withBody:["sub":UUID().uuidString,"custom_string_claim":"Shawarma Friday!","custom_integer_claim":10,"custom_double_claim":3.4,"custom_double_string_claim":"1.3","custom_true_boolean_claim":true,"custom_false_boolean_claim":false])
150
+
sut =jwt(withBody:["sub":UUID().uuidString,
151
+
"custom_string_claim":"Shawarma Friday!",
152
+
"custom_integer_claim":10,
153
+
"custom_integer_claim_0":0,
154
+
"custom_integer_claim_1":1,
155
+
"custom_integer_claim_string":"13",
156
+
"custom_double_claim":3.1,
157
+
"custom_double_claim_0.0":0.0,
158
+
"custom_double_claim_1.0":1.0,
159
+
"custom_double_claim_string":"1.3",
160
+
"custom_boolean_claim_true":true,
161
+
"custom_boolean_claim_false":false])
151
162
}
152
163
153
164
it("should return claim by name"){
@@ -175,18 +186,68 @@ class JWTDecodeSpec: QuickSpec {
0 commit comments