```@Test fun `classes under 'model' package should...
# konsist
s
Copy code
@Test
fun `classes under 'model' package should be data class`() {
    Konsist
        .scopeFromModule("data")
        .classes()
        .withPackage("model")
        .assert {
            it.hasDataModifier
        }
}
After running this test getting
Declaration list is empty. Please make sure that list of declarations contain items before calling the 'assert' method.
this error. Where as there are 2 classes are available inside model package.
i
Can you share a sample project to help me reproduce this behaviour?
s
@igor.wojda You can checkout this as well https://github.com/swapnil-musale/JetJoke
n
There are missing dots at this line
.withPackage("model")
. You should write
.withPackage("..model..")
(two dots
..
means zero or more packages)
👍 1
s
It worked thanks
i