File tree 3 files changed +11
-2
lines changed
3 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -84,6 +84,14 @@ module.exports = {
84
84
expect : 'basic.import.expect.css' ,
85
85
result : 'basic.import.result.css'
86
86
} ,
87
+ 'basic:import-css-from-multiple-files' : {
88
+ message : 'supports { importFrom: ["test/empty.css", "test/import-selectors.css"] } usage' ,
89
+ options : {
90
+ importFrom : [ "test/empty.css" , "test/import-selectors.css" ]
91
+ } ,
92
+ expect : 'basic.import.expect.css' ,
93
+ result : 'basic.import.result.css'
94
+ } ,
87
95
'basic:import-css-from-type' : {
88
96
message : 'supports { importFrom: [ { from: "test/import-selectors.css", type: "css" } ] } usage' ,
89
97
options : {
Original file line number Diff line number Diff line change @@ -81,7 +81,8 @@ export default function importCustomSelectorsFromSources(sources) {
81
81
const type = ( opts . type || path . extname ( from ) . slice ( 1 ) ) . toLowerCase ( ) ;
82
82
83
83
return { type, from } ;
84
- } ) . reduce ( async ( customSelectors , source ) => {
84
+ } ) . reduce ( async ( customSelectorsPromise , source ) => {
85
+ const customSelectors = await customSelectorsPromise
85
86
const { type, from } = await source ;
86
87
87
88
if ( type === 'ast' ) {
@@ -101,7 +102,7 @@ export default function importCustomSelectorsFromSources(sources) {
101
102
}
102
103
103
104
return Object . assign ( customSelectors , importCustomSelectorsFromObject ( await source ) ) ;
104
- } , { } ) ;
105
+ } , Promise . resolve ( { } ) ) ;
105
106
}
106
107
107
108
/* Helper utilities
You can’t perform that action at this time.
0 commit comments