Skip to content

Commit

Permalink
Fix failing Konsist test
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanLongstaff committed Sep 2, 2024
1 parent 866f7e9 commit 0022d42
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -56,7 +57,7 @@ class PacketKonsistTest : DescribeSpec({
},
classes.withAnnotationOf(PacketType::class)
) { packetClass ->
packetClass.assertTrue { it.hasParentWithName("Packet.Server") }
packetClass.assertTrue { it.hasParentOf<Packet.Server>() }
}
}

Expand Down

0 comments on commit 0022d42

Please sign in to comment.