package fourslash_test

import (
	"testing"

	"efprojects.com/kitten-ipc/kitcom/internal/tsgo/fourslash"
	"efprojects.com/kitten-ipc/kitcom/internal/tsgo/testutil"
)

func TestQuickInfoJsDocTextFormatting1(t *testing.T) {
	t.Parallel()

	defer testutil.RecoverAndFail(t, "Panic on fourslash test")
	const content = `/**
 * @param {number} var1 **Highlighted text**
 * @param {string} var2 Another **Highlighted text**
*/
function f1(var1, var2) { }

/**
 * @param {number} var1 *Regular text with an asterisk
 * @param {string} var2 Another *Regular text with an asterisk
*/
function f2(var1, var2) { }

/**
 * @param {number} var1 
 * *Regular text with an asterisk
 * @param {string} var2 
 * Another *Regular text with an asterisk
*/
function f3(var1, var2) { }

/**
 * @param {number} var1 
 * **Highlighted text**
 * @param {string} var2 
 * Another **Highlighted text**
*/
function f4(var1, var2) { }

/**
 * @param {number} var1 
   **Highlighted text**
 * @param {string} var2 
   Another **Highlighted text**
*/
function f5(var1, var2) { }

f1(/*1*/);
f2(/*2*/);
f3(/*3*/);
f4(/*4*/);
f5(/*5*/);`
	f := fourslash.NewFourslash(t, nil /*capabilities*/, content)
	f.VerifyBaselineSignatureHelp(t)
}
