Skip to content

Commit

Permalink
Add additional tests
Browse files Browse the repository at this point in the history
  • Loading branch information
niksy committed Sep 13, 2021
1 parent f83ec5c commit 9b5f307
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/language-css/printer-postcss.js
Expand Up @@ -555,7 +555,6 @@ function genericPrint(path, options, print) {
insideAtRuleNode(path, "forward") &&
iNode.type === "value-word" &&
iNode.value &&
iNode.value.endsWith("-") &&
iPrevNode.type === "value-word" &&
iPrevNode.value &&
iPrevNode.value === "as" &&
Expand Down
8 changes: 8 additions & 0 deletions tests/format/scss/quotes/__snapshots__/jsfmt.spec.js.snap
Expand Up @@ -29,6 +29,8 @@ singleQuote: true
@forward "library" as btn-*;
@forward "library" as btn*;
=====================================output=====================================
@use 'library';
Expand All @@ -49,6 +51,8 @@ singleQuote: true
@forward 'library' as btn-*;
@forward 'library' as btn*;
================================================================================
`;

Expand Down Expand Up @@ -80,6 +84,8 @@ printWidth: 80
@forward "library" as btn-*;
@forward "library" as btn*;
=====================================output=====================================
@use "library";
Expand All @@ -100,5 +106,7 @@ printWidth: 80
@forward "library" as btn-*;
@forward "library" as btn*;
================================================================================
`;
2 changes: 2 additions & 0 deletions tests/format/scss/quotes/quotes.scss
Expand Up @@ -19,3 +19,5 @@
@forward "library" hide gradient;

@forward "library" as btn-*;

@forward "library" as btn*;

0 comments on commit 9b5f307

Please sign in to comment.