Skip to content

Commit 0482010

Browse files
author
Hamed Soleimani
committed
fix test
1 parent ee599bf commit 0482010

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

plugins/amazonq/chat/jetbrains-community/tst/software/aws/toolkits/jetbrains/services/amazonqFeatureDev/FeatureDevSessionContextTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,11 @@ class FeatureDevSessionContextTest : FeatureDevTestBase(HeavyJavaCodeInsightTest
6363

6464
@Test
6565
fun testAllowedFilePath() {
66-
val allowedPaths = listOf("gradlew", "build.gradle", "gradle.properties", ".mvn/wrapper/maven-wrapper.properties")
66+
val allowedPaths = listOf("build.gradle", "gradle.properties", ".mvn/wrapper/maven-wrapper.properties")
6767
allowedPaths.forEach({
6868
val txtFile = mock<VirtualFile>()
6969
whenever(txtFile.path).thenReturn(it)
70+
whenever(txtFile.extension).thenReturn(it.split(".").last())
7071
assertTrue(featureDevSessionContext.isFileExtensionAllowed(txtFile))
7172
})
7273
}

0 commit comments

Comments
 (0)