Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

test(stylesheet): complete system variables at the end of the prefix

Amruth Pillaif4bf6887b98a
diff --git a/apps/web/src/features/resume/stylesheet/editor-extensions.test.ts b/apps/web/src/features/resume/stylesheet/editor-extensions.test.ts
index e23afe992..2400e1904 100644
--- a/apps/web/src/features/resume/stylesheet/editor-extensions.test.ts
+++ b/apps/web/src/features/resume/stylesheet/editor-extensions.test.ts
@@ -67,7 +67,9 @@ describe("Semantic CSS editor extensions", () => {
const propertyLabels = await getSemanticCssCompletionLabels("section {\n\tco", 13, metadata);
const variableSource = "resume { --brand-accent: #f00; color: var(--br";
const variableLabels = await getSemanticCssCompletionLabels(variableSource, variableSource.length, metadata);
- const systemLabels = await getSemanticCssCompletionLabels("--resume-", 5, metadata);
+ // The cursor has to sit at the end of the typed prefix; mid-token it reads as a selector context.
+ const systemSource = "--resume-";
+ const systemLabels = await getSemanticCssCompletionLabels(systemSource, systemSource.length, metadata);
const directiveLabels = await getSemanticCssCompletionLabels("@", 1, metadata);
expect(selectorLabels).toEqual(