// Code generated by convertFourslash; DO NOT EDIT.
// To modify this test, run "npm run makemanual codeFixMissingTypeAnnotationOnExports26-fn-in-object-literal"

package fourslash_test

import (
	"testing"

	"github.com/microsoft/typescript-go/internal/fourslash"
	"github.com/microsoft/typescript-go/internal/testutil"
)

func TestCodeFixMissingTypeAnnotationOnExports26_fn_in_object_literal(t *testing.T) {
	fourslash.SkipIfFailing(t)
	t.Parallel()
	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `// @isolatedDeclarations: true
// @declaration: true
export const extensions = {
    /**
     */
    fn: <T>(actualValue: T, expectedValue: T) => {
       return actualValue === expectedValue
    },
    fn2: function<T>(actualValue: T, expectedValue: T)  {
       return actualValue === expectedValue
    }
}`
	f, done := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	defer done()
	f.VerifyCodeFixAll(t, fourslash.VerifyCodeFixAllOptions{
		FixID: "fixMissingTypeAnnotationOnExports",
		NewFileContent: `export const extensions = {
    /**
     */
    fn: <T>(actualValue: T, expectedValue: T): boolean => {
       return actualValue === expectedValue
    },
    fn2: function<T>(actualValue: T, expectedValue: T): boolean  {
       return actualValue === expectedValue
    }
}`,
	})
}
