mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
32 lines
885 B
Go
32 lines
885 B
Go
// Code generated by convertFourslash; DO NOT EDIT.
|
|
// To modify this test, run "npm run makemanual codeFixTopLevelAwait_module_targetES2017CompilerOptionsInTsConfig"
|
|
|
|
package fourslash_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/microsoft/typescript-go/internal/fourslash"
|
|
"github.com/microsoft/typescript-go/internal/testutil"
|
|
)
|
|
|
|
func TestCodeFixTopLevelAwait_module_targetES2017CompilerOptionsInTsConfig(t *testing.T) {
|
|
fourslash.SkipIfFailing(t)
|
|
t.Parallel()
|
|
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
|
|
const content = `// @filename: /dir/a.ts
|
|
declare const p: Promise<number>;
|
|
await p;
|
|
export {};
|
|
// @filename: /dir/tsconfig.json
|
|
{
|
|
"compilerOptions": {
|
|
"target": "es2017"
|
|
}
|
|
}`
|
|
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
|
|
defer done()
|
|
f.VerifyCodeFixNotAvailable(t, "fixTargetOption")
|
|
f.VerifyCodeFixAvailable(t, nil)
|
|
}
|