@@ -218,7 +218,9 @@ it('works with other visitors', () => {
218
218
}
219
219
}
220
220
mixinPlugin . postcss = true
221
- let out = postcss ( [ plugin , mixinPlugin ] ) . process ( css , { from : undefined } ) . css
221
+ let out = postcss ( [ plugin , mixinPlugin ] ) . process ( css , {
222
+ from : undefined
223
+ } ) . css
222
224
expect ( out ) . toEqual ( 'a b{color:red}a .in .deep{color:blue}' )
223
225
} )
224
226
@@ -235,7 +237,9 @@ it('works with other visitors #2', () => {
235
237
}
236
238
}
237
239
mixinPlugin . postcss = true
238
- let out = postcss ( [ plugin , mixinPlugin ] ) . process ( css , { from : undefined } ) . css
240
+ let out = postcss ( [ plugin , mixinPlugin ] ) . process ( css , {
241
+ from : undefined
242
+ } ) . css
239
243
expect ( out ) . toEqual ( 'a .in .deep {color:blue} a b {color:red}' )
240
244
} )
241
245
@@ -252,3 +256,14 @@ it('shows clear errors on other errors', () => {
252
256
css = postcss ( [ plugin ] ) . process ( css , { from : undefined } ) . css
253
257
} ) . toThrow ( ':2:3: Unexpected' )
254
258
} )
259
+
260
+ it ( 'third level dependencies' , ( ) => {
261
+ run (
262
+ '.text {&:hover{border-color: red;&:before{color: red;}}}' ,
263
+ '.text:hover{border-color: red;}.text:hover:before{color: red;}'
264
+ )
265
+ } )
266
+
267
+ it ( 'third level dependencies #2' , ( ) => {
268
+ run ( '.selector{:global{h2{color:pink}}}' , '.selector :global h2{color:pink}' )
269
+ } )
0 commit comments