From 2c5c7d409cd6e8184d2f8cff85924184a031e93c Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Fri, 15 Nov 2024 03:17:42 +0000 Subject: [PATCH] Enable tests now that ForwardRule exists (#2437) --- .../lib/src/configured-variable.test.ts | 44 +++++++++++-------- 1 file changed, 25 insertions(+), 19 deletions(-) diff --git a/pkg/sass-parser/lib/src/configured-variable.test.ts b/pkg/sass-parser/lib/src/configured-variable.test.ts index c673670a8..b7ae6cab3 100644 --- a/pkg/sass-parser/lib/src/configured-variable.test.ts +++ b/pkg/sass-parser/lib/src/configured-variable.test.ts @@ -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; @@ -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', () => {