Skip to content

Commit

Permalink
Enable tests now that ForwardRule exists (#2437)
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 authored Nov 15, 2024
1 parent 57a6853 commit 2c5c7d4
Showing 1 changed file with 25 additions and 19 deletions.
44 changes: 25 additions & 19 deletions pkg/sass-parser/lib/src/configured-variable.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,14 @@
// MIT-style license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

import {ConfiguredVariable, StringExpression, UseRule, sass, scss} from '..';
import {
ConfiguredVariable,
ForwardRule,
StringExpression,
UseRule,
sass,
scss,
} from '..';

describe('a configured variable', () => {
let node: ConfiguredVariable;
Expand Down Expand Up @@ -129,24 +136,23 @@ describe('a configured variable', () => {
});
}

// We can re-enable these once ForwardRule exists.
// describeNode(
// 'parsed as SCSS',
// () =>
// (
// scss.parse('@forward "baz" with ($foo: "bar" !default)')
// .nodes[0] as ForwardRule
// ).configuration.get('foo')!
// );
//
// describeNode(
// 'parsed as Sass',
// () =>
// (
// sass.parse('@forward "baz" with ($foo: "bar" !default)')
// .nodes[0] as ForwardRule
// ).configuration.get('foo')!
// );
describeNode(
'parsed as SCSS',
() =>
(
scss.parse('@forward "baz" with ($foo: "bar" !default)')
.nodes[0] as ForwardRule
).configuration.get('foo')!,
);

describeNode(
'parsed as Sass',
() =>
(
sass.parse('@forward "baz" with ($foo: "bar" !default)')
.nodes[0] as ForwardRule
).configuration.get('foo')!,
);

describe('constructed manually', () => {
describe('with an array', () => {
Expand Down

0 comments on commit 2c5c7d4

Please sign in to comment.