Skip to content

Commit 68beec8

Browse files
committed
Fix specs for weakteam#11
1 parent 3a32ea5 commit 68beec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/src/test/scala/io/github/weakteam/mongo/bson/BsonValueSpec.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ class BsonValueSpec extends AnyWordSpec with Matchers {
8282
}
8383

8484
"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)))))
8686
show"$bson" mustBe "BsonArray(values = [BsonString(value = test), BsonDocument(values = {(key = test, value = BsonInt(value = 42))})])"
8787
}
8888

8989
"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")))))
9191
show"$bson" mustBe "BsonDocument(values = {" +
9292
"(key = test, value = BsonInt(value = 42)), " +
9393
"(key = list, value = BsonArray(values = [BsonString(value = test)]))" +

0 commit comments

Comments
 (0)