27 lines
763 B
Go
27 lines
763 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual ambientShorthandFindAllRefs"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestAmbientShorthandFindAllRefs(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @Filename: declarations.d.ts
|
|
declare module "jquery";
|
|
// @Filename: user.ts
|
|
import {/*1*/x} from "jquery";
|
|
// @Filename: user2.ts
|
|
import {/*2*/x} from "jquery";`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineFindAllReferences(t, "1", "2")
|
|
}
|