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 fa8b474
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/core/test/features/css-custom-property.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 fa8b474

Please sign in to comment.