From 0022d42823e138a2cf7657d827902e6fd5d1a56f Mon Sep 17 00:00:00 2001 From: Jordan Longstaff Date: Mon, 2 Sep 2024 10:15:26 -0400 Subject: [PATCH] Fix failing Konsist test --- .../kotlin/com/walkertribe/ian/protocol/PacketKonsistTest.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/IAN/packets/konsist/src/test/kotlin/com/walkertribe/ian/protocol/PacketKonsistTest.kt b/IAN/packets/konsist/src/test/kotlin/com/walkertribe/ian/protocol/PacketKonsistTest.kt index 6e7f07dc..cc53ca3c 100644 --- a/IAN/packets/konsist/src/test/kotlin/com/walkertribe/ian/protocol/PacketKonsistTest.kt +++ b/IAN/packets/konsist/src/test/kotlin/com/walkertribe/ian/protocol/PacketKonsistTest.kt @@ -9,6 +9,7 @@ import com.lemonappdev.konsist.api.ext.list.withParentOf import com.lemonappdev.konsist.api.ext.list.withRepresentedTypeOf import com.lemonappdev.konsist.api.ext.list.withTopLevel import com.lemonappdev.konsist.api.ext.provider.hasAnnotationOf +import com.lemonappdev.konsist.api.ext.provider.hasParentOf import com.lemonappdev.konsist.api.verify.assertFalse import com.lemonappdev.konsist.api.verify.assertTrue import com.walkertribe.ian.protocol.core.SimpleEventPacket @@ -56,7 +57,7 @@ class PacketKonsistTest : DescribeSpec({ }, classes.withAnnotationOf(PacketType::class) ) { packetClass -> - packetClass.assertTrue { it.hasParentWithName("Packet.Server") } + packetClass.assertTrue { it.hasParentOf() } } }