@@ -57,6 +57,8 @@ class GtsFileTest : BasePlatformTestCase() {
5757 myFixture.configureByText(GjsFileType .INSTANCE , gts)
5858 myFixture.enableInspections(ES6UnusedImportsInspection (), JSUnusedLocalSymbolsInspection (), JSUnusedGlobalSymbolsInspection ())
5959 CodeInsightTestFixtureImpl .ensureIndexesUpToDate(project)
60+ val unusedConstants = myFixture.doHighlighting().filter { it.description.startsWith(" unused constant" ) }
61+ TestCase .assertEquals(unusedConstants.size, 0 )
6062 val highlightInfos: List <HighlightInfo > = myFixture.doHighlighting().filter { it.inspectionToolId == " ES6UnusedImports" || it.inspectionToolId == " JSUnusedLocalSymbols" }
6163 TestCase .assertEquals(4 , highlightInfos.size)
6264 TestCase .assertTrue(highlightInfos[0 ].description.contains(" quux" ))
@@ -75,7 +77,10 @@ class GtsFileTest : BasePlatformTestCase() {
7577
7678 const bar = () => null;
7779
78- const Baz = {};
80+ const Baz = {};
81+
82+ export const grault = {};
83+ export const Grault = {};
7984
8085 export default <template>
8186 <Foo />
@@ -84,12 +89,14 @@ class GtsFileTest : BasePlatformTestCase() {
8489 {{x}}
8590 {{y}}
8691 {{bar}}
87- {{grault}}
92+ {{grault}}q
8893 </template>
8994 """ .trimIndent()
9095 myFixture.configureByText(GtsFileType .INSTANCE , gts)
91- myFixture.enableInspections(ES6UnusedImportsInspection ())
96+ myFixture.enableInspections(ES6UnusedImportsInspection (), JSUnusedLocalSymbolsInspection (), JSUnusedGlobalSymbolsInspection () )
9297 CodeInsightTestFixtureImpl .ensureIndexesUpToDate(project)
98+ val unusedConstants = myFixture.doHighlighting().filter { it.description.startsWith(" unused constant" ) }
99+ TestCase .assertEquals(unusedConstants.size, 0 )
93100 val highlightInfos: List <HighlightInfo > = myFixture.doHighlighting().filter { it.inspectionToolId == " ES6UnusedImports" }
94101 TestCase .assertEquals(highlightInfos.size, 2 )
95102 TestCase .assertTrue(highlightInfos.first().description.contains(" quux" ))
0 commit comments