vendor tsgo
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
// Code generated by convertFourslash; DO NOT EDIT.
|
||||
// To modify this test, run "npm run makemanual goToSource5_sameAsGoToDef1"
|
||||
|
||||
package fourslash_test
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/microsoft/typescript-go/internal/fourslash"
|
||||
"github.com/microsoft/typescript-go/internal/testutil"
|
||||
)
|
||||
|
||||
func TestGoToSource5_sameAsGoToDef1(t *testing.T) {
|
||||
fourslash.SkipIfFailing(t)
|
||||
t.Parallel()
|
||||
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
||||
const content = `// @lib: es5
|
||||
// @Filename: /home/src/workspaces/project/a.ts
|
||||
export const /*end*/a = 'a';
|
||||
// @Filename: /home/src/workspaces/project/a.d.ts
|
||||
export declare const a: string;
|
||||
// @Filename: /home/src/workspaces/project/a.js
|
||||
export const a = 'a';
|
||||
// @Filename: /home/src/workspaces/project/b.ts
|
||||
import { a } from './a';
|
||||
[|a/*start*/|]`
|
||||
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
||||
defer done()
|
||||
f.MarkTestAsStradaServer()
|
||||
f.VerifyBaselineGoToSourceDefinition(t, "start")
|
||||
f.VerifyBaselineGoToDefinition(t, true, "start")
|
||||
}
|
||||
Reference in New Issue
Block a user