Skip to content

Commit 2c5c7d4

Browse files
authored
Enable tests now that ForwardRule exists (#2437)
1 parent 57a6853 commit 2c5c7d4

File tree

1 file changed

+25
-19
lines changed

1 file changed

+25
-19
lines changed

pkg/sass-parser/lib/src/configured-variable.test.ts

Lines changed: 25 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,14 @@
22
// MIT-style license that can be found in the LICENSE file or at
33
// https://opensource.org/licenses/MIT.
44

5-
import {ConfiguredVariable, StringExpression, UseRule, sass, scss} from '..';
5+
import {
6+
ConfiguredVariable,
7+
ForwardRule,
8+
StringExpression,
9+
UseRule,
10+
sass,
11+
scss,
12+
} from '..';
613

714
describe('a configured variable', () => {
815
let node: ConfiguredVariable;
@@ -129,24 +136,23 @@ describe('a configured variable', () => {
129136
});
130137
}
131138

132-
// We can re-enable these once ForwardRule exists.
133-
// describeNode(
134-
// 'parsed as SCSS',
135-
// () =>
136-
// (
137-
// scss.parse('@forward "baz" with ($foo: "bar" !default)')
138-
// .nodes[0] as ForwardRule
139-
// ).configuration.get('foo')!
140-
// );
141-
//
142-
// describeNode(
143-
// 'parsed as Sass',
144-
// () =>
145-
// (
146-
// sass.parse('@forward "baz" with ($foo: "bar" !default)')
147-
// .nodes[0] as ForwardRule
148-
// ).configuration.get('foo')!
149-
// );
139+
describeNode(
140+
'parsed as SCSS',
141+
() =>
142+
(
143+
scss.parse('@forward "baz" with ($foo: "bar" !default)')
144+
.nodes[0] as ForwardRule
145+
).configuration.get('foo')!,
146+
);
147+
148+
describeNode(
149+
'parsed as Sass',
150+
() =>
151+
(
152+
sass.parse('@forward "baz" with ($foo: "bar" !default)')
153+
.nodes[0] as ForwardRule
154+
).configuration.get('foo')!,
155+
);
150156

151157
describe('constructed manually', () => {
152158
describe('with an array', () => {

0 commit comments

Comments
 (0)