From c8900f397121b5c82dbb676fe5ce8e40ed02690f Mon Sep 17 00:00:00 2001 From: Evgenii Kozlov Date: Wed, 2 Apr 2025 19:00:08 +0200 Subject: [PATCH] DROID-3244 App | Tech | Fix failing tests --- .../com/anytypeio/anytype/MiddlewareTest.kt | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/middleware/src/test/java/com/anytypeio/anytype/MiddlewareTest.kt b/middleware/src/test/java/com/anytypeio/anytype/MiddlewareTest.kt index fccd10dbe1..8fa223aa61 100644 --- a/middleware/src/test/java/com/anytypeio/anytype/MiddlewareTest.kt +++ b/middleware/src/test/java/com/anytypeio/anytype/MiddlewareTest.kt @@ -107,7 +107,14 @@ class MiddlewareTest { details = mapOf(), templateId = templateId, objectTypeUniqueKey = typeKey.key, - spaceId = spaceId + spaceId = spaceId, + block = Block( + link = Block.Content.Link( + style = Block.Content.Link.Style.Page, + cardStyle = Block.Content.Link.CardStyle.Card, + iconSize = Block.Content.Link.IconSize.SizeSmall + ) + ) ) service.stub { @@ -164,7 +171,14 @@ class MiddlewareTest { position = Block.Position.Inner, details = buildMap { put(Relations.NAME, name) }, objectTypeUniqueKey = typeKey.key, - spaceId = spaceId + spaceId = spaceId, + block = Block( + link = Block.Content.Link( + style = Block.Content.Link.Style.Page, + cardStyle = Block.Content.Link.CardStyle.Card, + iconSize = Block.Content.Link.IconSize.SizeSmall + ) + ) ) service.stub {