vendor tsgo
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestExportAssignmentMissingName(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
// Regression test for crash when export= has an incomplete/missing expression
|
||||
// (e.g. "export = " with a trailing space). The SelectionRange must not fall
|
||||
// outside the document symbol's Range.
|
||||
const content = `export = `
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.VerifyBaselineDocumentSymbol(t)
|
||||
}
|
||||
Reference in New Issue
Block a user