diff --git a/mongo/it/src/MongoJsonFileRepositoryIntegrationSpec.scala b/mongo/it/src/MongoJsonFileRepositoryIntegrationSpec.scala index 079890c..62f1777 100644 --- a/mongo/it/src/MongoJsonFileRepositoryIntegrationSpec.scala +++ b/mongo/it/src/MongoJsonFileRepositoryIntegrationSpec.scala @@ -18,10 +18,14 @@ for repo <- ZIO .service[MongoJsonFileRepository[ExampleMetadata, ExampleCriteria]] - _ <- repo.put("test.txt", "Example content".getBytes(), ExampleMetadata("10123")) + _ <- repo.put( + "test.txt", + "Example content".getBytes(), + ExampleMetadata("10123") + ) byId <- repo.find("test.txt") result <- repo.matching(ByOsobniCislo("10123")) - yield assertTrue(byId.isDefined, result.head == "test.txt") + yield assertTrue(byId.isDefined, result.head.name == "test.txt") ) ).provideCustomLayer(layer.mapError(TestFailure.fail))