File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/test/kotlin/com/emberjs/gts Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ import com.emberjs.gts.GtsFileType
55import com.intellij.codeInsight.daemon.impl.HighlightInfo
66import com.intellij.lang.javascript.inspections.ES6UnusedImportsInspection
77import com.intellij.lang.javascript.inspections.JSUnusedLocalSymbolsInspection
8+ import com.intellij.lang.javascript.inspections.JSUnusedGlobalSymbolsInspection
89import com.intellij.lang.javascript.psi.impl.JSFileImpl
910import com.intellij.testFramework.IndexingTestUtil
1011import 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)
You can’t perform that action at this time.
0 commit comments