Files
kjol/tools/tsgo/internal/fourslash/tests/gen/codeFixSpellingJs5_test.go
2026-07-09 16:50:43 -04:00

40 lines
974 B
Go

// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual codeFixSpellingJs5"
package fourslash_test
import (
"testing"
"github.com/microsoft/typescript-go/internal/fourslash"
"github.com/microsoft/typescript-go/internal/testutil"
)
func TestCodeFixSpellingJs5(t *testing.T) {
fourslash.SkipIfFailing(t)
t.Parallel()
defer testutil.RecoverAndFail(t, "Panic on fourslash test")
const content = `// @allowjs: true
// @noEmit: true
// @filename: a.js
var other = {
puuce: 4
}
var Jimmy = 1
var John = 2
// @filename: b.js
other.puuuce // OK, from another file
new Date().getGMTDate() // OK, from another file
window.argle // OK, from globalThis
self.blargle // OK, from globalThis
// No suggestions for globals from other files
const atoc = setIntegral(() => console.log('ok'), 500)
AudioBuffin // etc
Jimmy
Jon`
f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
defer done()
f.VerifyNoErrors(t)
}