File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -858,7 +858,7 @@ describe('@apply', () => {
858858 } )
859859
860860 it ( 'should be usable with CSS mixins' , async ( ) => {
861- let compiler = await compile ( css `
861+ let input = css `
862862 .foo {
863863 /* Utility usage */
864864 @apply underline;
@@ -872,8 +872,9 @@ describe('@apply', () => {
872872 color : red;
873873 }
874874 }
875- ` )
875+ `
876876
877+ let compiler = await compile ( input )
877878 expect ( compiler . build ( [ ] ) ) . toMatchInlineSnapshot ( `
878879 ".foo {
879880 text-decoration-line: underline;
@@ -887,6 +888,26 @@ describe('@apply', () => {
887888 }
888889 "
889890 ` )
891+
892+ // TODO: This output is currently broken because Lightning CSS doesn't
893+ // handle this case correctly yet
894+ expect ( await compileCss ( input ) ) . toMatchInlineSnapshot ( `
895+ ".foo {
896+ text-decoration-line: underline;
897+ }
898+
899+ @apply --my-mixin-1;
900+
901+ @apply --my-mixin-1();
902+
903+ @apply --my-mixin-1 --my-mixin-2;
904+
905+ @apply --my-mixin-1() --my-mixin-2();
906+
907+ @apply --my-mixin-3 {
908+ color: red;
909+ }"
910+ ` )
890911 } )
891912
892913 it ( 'should error when trying to use mixins and utilities together' , async ( ) => {
You can’t perform that action at this time.
0 commit comments