Skip to content

Commit c14e877

Browse files
committed
fix
1 parent 13ee9a2 commit c14e877

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/test/kotlin/com/emberjs/gts/GtsFileTest.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import com.emberjs.gts.GtsFileType
55
import com.intellij.codeInsight.daemon.impl.HighlightInfo
66
import com.intellij.lang.javascript.inspections.ES6UnusedImportsInspection
77
import com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection
8+
import com.intellij.lang.javascript.inspections.JSUnusedGlobalSymbolsInspection
89
import com.intellij.lang.javascript.psi.impl.JSFileImpl
910
import com.intellij.testFramework.IndexingTestUtil
1011
import com.intellij.testFramework.fixtures.BasePlatformTestCase
@@ -54,7 +55,7 @@ class GtsFileTest : BasePlatformTestCase() {
5455
</template>
5556
""".trimIndent()
5657
myFixture.configureByText(GjsFileType.INSTANCE, gts)
57-
myFixture.enableInspections(ES6UnusedImportsInspection(), JSUnusedLocalSymbolsInspection())
58+
myFixture.enableInspections(ES6UnusedImportsInspection(), JSUnusedLocalSymbolsInspection(), JSUnusedGlobalSymbolsInspection())
5859
CodeInsightTestFixtureImpl.ensureIndexesUpToDate(project)
5960
val highlightInfos: List<HighlightInfo> = myFixture.doHighlighting().filter { it.inspectionToolId == "ES6UnusedImports" || it.inspectionToolId == "JSUnusedLocalSymbols" }
6061
TestCase.assertEquals(4, highlightInfos.size)

0 commit comments

Comments
 (0)