Skip to content

Commit f55ff4b

Browse files
fix KDocs and wrong imports
1 parent 4714e57 commit f55ff4b

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/main/kotlin/io/kotest/plugin/intellij/styles/BehaviorSpecStyle.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ object BehaviorSpecStyle : SpecStyle {
204204
}
205205

206206
/**
207-
* For a Behavior we consider the following scenarios:
207+
* For a BehaviorSpec we consider the following scenarios:
208208
*
209209
* context("test name") {}
210210
* xcontext("test name") {}

src/main/kotlin/io/kotest/plugin/intellij/styles/DescribeSpecStyle.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,9 @@ object DescribeSpecStyle : SpecStyle {
299299
if (dot != null) return test(dot)
300300

301301
// try to find Data Test Method by finding lambda openings
302-
val dataMethodCall = element.isDataTestMethodCall(ShouldSpecStyle.getDataTestMethodNames())
302+
val dataMethodCall = element.isDataTestMethodCall(getDataTestMethodNames())
303303
if (dataMethodCall != null) {
304-
return ShouldSpecStyle.test(dataMethodCall)
304+
return test(dataMethodCall)
305305
}
306306
return null
307307
}

src/main/kotlin/io/kotest/plugin/intellij/styles/ShouldSpecStyle.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ object ShouldSpecStyle : SpecStyle {
141141
}
142142

143143
/**
144-
* For a FunSpec we consider the following scenarios:
144+
* For a ShouldSpec we consider the following scenarios:
145145
*
146146
* should("test name") { }
147147
* xshould("test name") { }

src/main/kotlin/io/kotest/plugin/intellij/styles/WordSpecStyle.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ object WordSpecStyle : SpecStyle {
143143
}
144144

145145
/**
146-
* For a FunSpec we consider the following scenarios:
146+
* For a WordSpec we consider the following scenarios:
147147
*
148148
* should("test name") { }
149149
* xshould("test name") { }
@@ -171,9 +171,9 @@ object WordSpecStyle : SpecStyle {
171171
if (ktdot != null) return test(ktdot)
172172

173173
// try to find Data Test Method by finding lambda openings
174-
val dataMethodCall = element.isDataTestMethodCall(ShouldSpecStyle.getDataTestMethodNames())
174+
val dataMethodCall = element.isDataTestMethodCall(getDataTestMethodNames())
175175
if (dataMethodCall != null) {
176-
return ShouldSpecStyle.test(dataMethodCall)
176+
return test(dataMethodCall)
177177
}
178178

179179
return null

0 commit comments

Comments
 (0)