Skip to content

Commit

Permalink
fix: broken test
Browse files Browse the repository at this point in the history
  • Loading branch information
idoros committed Sep 28, 2023
1 parent 2bc9b34 commit b41981e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/test/stylable-transformer/global.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ describe('Stylable postcss transform (Global)', () => {
@st-import [test] from './imported.st.css';
.root {}
.test {}
.x { -st-global: '.a .b'; }
.x { -st-global: '.a.b'; }
:global(.c .d) {}
:global(.e) {}
`,
Expand All @@ -38,7 +38,7 @@ describe('Stylable postcss transform (Global)', () => {
e: true,
});
expect((meta.targetAst!.nodes[1] as postcss.Rule).selector).to.equal('.global-test');
expect((meta.targetAst!.nodes[2] as postcss.Rule).selector).to.equal('.a .b');
expect((meta.targetAst!.nodes[2] as postcss.Rule).selector).to.equal('.a.b');
expect((meta.targetAst!.nodes[3] as postcss.Rule).selector).to.equal('.c .d');
expect((meta.targetAst!.nodes[4] as postcss.Rule).selector).to.equal('.e');
});
Expand Down

0 comments on commit b41981e

Please sign in to comment.