Closed tomblachut closed 3 years ago
I've created SvelteResolveTest in #137 but there's definitely room for adding more cases.
SvelteResolveTest
$store
context="module"
FYI Vue plugin is using following helper in some tests:
private fun doTestResolveLocallyInsideComponent(text: String, expectedPropertyName: String?) { myFixture.configureByText("ResolveLocallyInsideComponent.vue", text) val reference = myFixture.getReferenceAtCaretPosition() TestCase.assertNotNull(reference) val target = reference!!.resolve() if (expectedPropertyName == null) { TestCase.assertNull(target) } else { val property = if (target is JSImplicitElement) target.parent else target TestCase.assertTrue(property is JSProperty) TestCase.assertEquals(expectedPropertyName, (property as JSProperty).name) } }
I've created
SvelteResolveTest
in #137 but there's definitely room for adding more cases.TODO
$store
context="module"
exportsFYI Vue plugin is using following helper in some tests: