File tree 1 file changed +2
-2
lines changed
core/src/test/scala/io/github/weakteam/mongo/bson 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -82,12 +82,12 @@ class BsonValueSpec extends AnyWordSpec with Matchers {
82
82
}
83
83
84
84
" return appropriate value for BsonArray" in {
85
- val bson = BsonArray (List (BsonString (" test" ), BsonDocument (List (" test" -> BsonInt (42 )))))
85
+ val bson = BsonArray (List (BsonString (" test" ), BsonDocument (Map (" test" -> BsonInt (42 )))))
86
86
show " $bson" mustBe " BsonArray(values = [BsonString(value = test), BsonDocument(values = {(key = test, value = BsonInt(value = 42))})])"
87
87
}
88
88
89
89
" return appropriate value for BsonDocument" in {
90
- val bson = BsonDocument (List (" test" -> BsonInt (42 ), " list" -> BsonArray (List (BsonString (" test" )))))
90
+ val bson = BsonDocument (Map (" test" -> BsonInt (42 ), " list" -> BsonArray (List (BsonString (" test" )))))
91
91
show " $bson" mustBe " BsonDocument(values = {" +
92
92
" (key = test, value = BsonInt(value = 42)), " +
93
93
" (key = list, value = BsonArray(values = [BsonString(value = test)]))" +
You can’t perform that action at this time.
0 commit comments