28 lines
787 B
Go
28 lines
787 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual codeFixAddMissingFunctionDeclaration16"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestCodeFixAddMissingFunctionDeclaration16(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @moduleResolution: bundler
|
|
// @filename: /node_modules/test/index.js
|
|
export const x = 1;
|
|
// @filename: /foo.ts
|
|
import * as test from "test";
|
|
test.foo();`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.GoToFile(t, "/foo.ts")
|
|
f.VerifyCodeFixNotAvailable(t)
|
|
}
|