Skip to content

Commit dd31b53

Browse files
committed
Test setting hints to empty list instead of empty string
1 parent bed7091 commit dd31b53

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

webauthn-server-core/src/test/scala/com/yubico/webauthn/RelyingPartyStartOperationSpec.scala

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1007,15 +1007,11 @@ class RelyingPartyStartOperationSpec
10071007
pkcco.getHints.asScala should equal(List("security-key"))
10081008
}
10091009

1010-
it("to empty") {
1010+
it("or not, defaulting to the empty list.") {
10111011
val pkcco = rp.startRegistration(
1012-
StartRegistrationOptions
1013-
.builder()
1014-
.user(userId)
1015-
.hints("")
1016-
.build()
1012+
StartRegistrationOptions.builder().user(userId).build()
10171013
)
1018-
pkcco.getHints.asScala should equal(List(""))
1014+
pkcco.getHints.asScala should equal(List())
10191015
}
10201016
}
10211017

0 commit comments

Comments
 (0)