Skip to content

Commit

Permalink
test: update test assertions with textEdit
Browse files Browse the repository at this point in the history
  • Loading branch information
wkillerud committed Sep 17, 2024
1 parent 6af2f8d commit 82255f0
Show file tree
Hide file tree
Showing 5 changed files with 315 additions and 93 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ test("should suggest symbol from a different document via @use", async () => {
'<style lang="scss">',
'@use "./one" as ns;',
".foo {",
" color: ns.",
" color: ns.;",
"}",
"</style>",
],
Expand Down Expand Up @@ -124,11 +124,23 @@ test("should suggest symbol from a different document via @use", async () => {
commitCharacters: [";", ","],
documentation: "limegreen\n____\nVariable declared in one.scss",
filterText: "ns.$primary",
insertText: "$primary",
kind: CompletionItemKind.Color,
label: "$primary",
sortText: undefined,
tags: [],
textEdit: {
newText: "ns.$primary",
range: {
end: {
character: 11,
line: 9,
},
start: {
character: 8,
line: 9,
},
},
},
},
);
});
Loading

0 comments on commit 82255f0

Please sign in to comment.