From 5010d5aa40ba01b156b82989ee32ac68315d22f5 Mon Sep 17 00:00:00 2001 From: Ido Rosenthal Date: Tue, 24 Oct 2023 14:34:48 +0300 Subject: [PATCH] test: context property not overriding build-var reference --- packages/core/test/features/css-custom-property.spec.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/core/test/features/css-custom-property.spec.ts b/packages/core/test/features/css-custom-property.spec.ts index bddac31e8..ba3d8da71 100644 --- a/packages/core/test/features/css-custom-property.spec.ts +++ b/packages/core/test/features/css-custom-property.spec.ts @@ -757,7 +757,7 @@ describe(`features/css-custom-property`, () => { shouldReportNoDiagnostics(meta); }); - it(`should define property as var value`, () => { + it.only(`should define property as var value`, () => { const { sheets } = testStylableCore({ './origin.st.css': ` :vars { @@ -772,6 +772,8 @@ describe(`features/css-custom-property`, () => { } .root { + --x: context property does not override property from origin; + /* @decl(local) prop: var(--entry-y) */ prop: value(y); @@ -797,7 +799,7 @@ describe(`features/css-custom-property`, () => { }); // JS exports - expect(exports.vars, `JS export`).to.eql({ y: `--entry-y` }); + expect(exports.vars, `JS export`).to.eql({ y: `--entry-y`, x: `--entry-x` }); }); it(`should preserve string value with custom property`, () => { const { sheets } = testStylableCore({