@@ -982,37 +982,41 @@ class RelyingPartyStartOperationSpec
982
982
}
983
983
}
984
984
985
- it(" allows setting the hints to a value not in the spec." ) {
986
- val pkcco = relyingParty(userId = userId).startRegistration(
987
- StartRegistrationOptions
988
- .builder()
989
- .user(userId)
990
- .hints(" hej" )
991
- .build()
992
- )
993
- pkcco.getHints.asScala should equal(List (" hej" ))
994
- }
985
+ describe(" allows setting the hints" ) {
986
+ val rp = relyingParty(userId = userId)
995
987
996
- it(" allows setting the hints to a value in the spec." ) {
997
- val pkcco = relyingParty(userId = userId) .startRegistration(
998
- StartRegistrationOptions
999
- .builder()
1000
- .user(userId)
1001
- .hints(PublicKeyCredentialHint . SECURITY_KEY )
1002
- .build()
1003
- )
1004
- pkcco.getHints.asScala should equal(List (" security-key " ))
1005
- }
988
+ it(" to a value not in the spec." ) {
989
+ val pkcco = rp .startRegistration(
990
+ StartRegistrationOptions
991
+ .builder()
992
+ .user(userId)
993
+ .hints(" hej " )
994
+ .build()
995
+ )
996
+ pkcco.getHints.asScala should equal(List (" hej " ))
997
+ }
1006
998
1007
- it(" allows setting the hints to empty" ) {
1008
- val pkcco = relyingParty(userId = userId).startRegistration(
1009
- StartRegistrationOptions
1010
- .builder()
1011
- .user(userId)
1012
- .hints(" " )
1013
- .build()
1014
- )
1015
- pkcco.getHints.asScala should equal(List (" " ))
999
+ it(" to a value in the spec." ) {
1000
+ val pkcco = rp.startRegistration(
1001
+ StartRegistrationOptions
1002
+ .builder()
1003
+ .user(userId)
1004
+ .hints(PublicKeyCredentialHint .SECURITY_KEY )
1005
+ .build()
1006
+ )
1007
+ pkcco.getHints.asScala should equal(List (" security-key" ))
1008
+ }
1009
+
1010
+ it(" to empty" ) {
1011
+ val pkcco = rp.startRegistration(
1012
+ StartRegistrationOptions
1013
+ .builder()
1014
+ .user(userId)
1015
+ .hints(" " )
1016
+ .build()
1017
+ )
1018
+ pkcco.getHints.asScala should equal(List (" " ))
1019
+ }
1016
1020
}
1017
1021
1018
1022
it(" allows setting the timeout to empty." ) {
0 commit comments