28 lines
815 B
Go
28 lines
815 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual findAllRefsForUMDModuleAlias1"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestFindAllRefsForUMDModuleAlias1(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @Filename: 0.d.ts
|
|
export function doThing(): string;
|
|
export function doTheOtherThing(): void;
|
|
/*1*/export as namespace /*2*/myLib;
|
|
// @Filename: 1.ts
|
|
/// <reference path="0.d.ts" />
|
|
/*3*/myLib.doThing();`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyBaselineFindAllReferences(t, "1", "2", "3")
|
|
}
|