File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -888,7 +888,7 @@ describe('@apply', () => {
888888 } )
889889
890890 it ( 'should be usable with CSS mixins' , async ( ) => {
891- let compiler = await compile ( css `
891+ let input = css `
892892 .foo {
893893 /* Utility usage */
894894 @apply underline;
@@ -902,8 +902,9 @@ describe('@apply', () => {
902902 color : red;
903903 }
904904 }
905- ` )
905+ `
906906
907+ let compiler = await compile ( input )
907908 expect ( compiler . build ( [ ] ) ) . toMatchInlineSnapshot ( `
908909 ".foo {
909910 text-decoration-line: underline;
@@ -917,6 +918,26 @@ describe('@apply', () => {
917918 }
918919 "
919920 ` )
921+
922+ // TODO: This output is currently broken because Lightning CSS doesn't
923+ // handle this case correctly yet
924+ expect ( await compileCss ( input ) ) . toMatchInlineSnapshot ( `
925+ ".foo {
926+ text-decoration-line: underline;
927+ }
928+
929+ @apply --my-mixin-1;
930+
931+ @apply --my-mixin-1();
932+
933+ @apply --my-mixin-1 --my-mixin-2;
934+
935+ @apply --my-mixin-1() --my-mixin-2();
936+
937+ @apply --my-mixin-3 {
938+ color: red;
939+ }"
940+ ` )
920941 } )
921942
922943 it ( 'should error when trying to use mixins and utilities together' , async ( ) => {
You can’t perform that action at this time.
0 commit comments