Skip to content

Commit

Permalink
test: context property not overriding build-var reference
Browse files Browse the repository at this point in the history
  • Loading branch information
idoros committed Oct 24, 2023
1 parent 9ceb2ff commit 5010d5a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/test/features/css-custom-property.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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);
Expand All @@ -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({
Expand Down

0 comments on commit 5010d5a

Please sign in to comment.