Skip to content

Commit af8db4d

Browse files
authoredFeb 20, 2025
fix(tests): fix inlay hints tests (#299)
1 parent fd65933 commit af8db4d

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed
 

‎server/src/e2e/suite/inlayHints.test.ts

+6-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ suite("Inlay Hints Test Suite", () => {
2727
const hint = hints[x]
2828

2929
await this.editor.edit(editBuilder => {
30-
if (typeof hint.label === "string") {
31-
editBuilder.insert(hint.position, `/* ${hint.label} */`)
32-
}
30+
const label =
31+
typeof hint.label === "string"
32+
? hint.label
33+
: hint.label.map(p => p.value).join("")
34+
35+
editBuilder.insert(hint.position, `/* ${label} */`)
3336
})
3437

3538
const updatedHints = await this.getHints(this.document.getText())

0 commit comments

Comments
 (0)