@@ -221,26 +221,15 @@ it('handles document with one root and after raw', () => {
221
221
expect ( s ) . toEqual ( '@foo ' )
222
222
} )
223
223
224
- it ( 'handles document with one root and before raw' , ( ) => {
225
- let document = new Document ( )
226
- let root = new Root ( { raws : { before : ' ' } } )
227
- root . append ( new AtRule ( { name : 'foo' } ) )
228
- document . append ( root )
229
-
230
- let s = document . toString ( )
231
-
232
- expect ( s ) . toEqual ( ' @foo' )
233
- } )
234
-
235
224
it ( 'handles document with one root and before and after' , ( ) => {
236
225
let document = new Document ( )
237
- let root = new Root ( { raws : { before : 'BEFORE' , after : 'AFTER' } } )
226
+ let root = new Root ( { raws : { after : 'AFTER' } } )
238
227
root . append ( new AtRule ( { name : 'foo' } ) )
239
228
document . append ( root )
240
229
241
230
let s = document . toString ( )
242
231
243
- expect ( s ) . toEqual ( 'BEFORE @fooAFTER' )
232
+ expect ( s ) . toEqual ( '@fooAFTER' )
244
233
} )
245
234
246
235
it ( 'handles document with three roots without raws' , ( ) => {
@@ -264,7 +253,7 @@ it('handles document with three roots without raws', () => {
264
253
} )
265
254
266
255
it ( 'handles document with three roots, with before and after raws' , ( ) => {
267
- let root1 = new Root ( { raws : { before : 'BEFORE_ONE' , after : 'AFTER_ONE' } } )
256
+ let root1 = new Root ( { raws : { after : 'AFTER_ONE' } } )
268
257
root1 . append ( new Rule ( { selector : 'a.one' } ) )
269
258
270
259
let root2 = new Root ( { raws : { after : 'AFTER_TWO' } } )
@@ -280,7 +269,5 @@ it('handles document with three roots, with before and after raws', () => {
280
269
281
270
let s = document . toString ( )
282
271
283
- expect ( s ) . toEqual (
284
- 'BEFORE_ONEa.one {}AFTER_ONEa.two {}AFTER_TWOa.three {}AFTER_THREE'
285
- )
272
+ expect ( s ) . toEqual ( 'a.one {}AFTER_ONEa.two {}AFTER_TWOa.three {}AFTER_THREE' )
286
273
} )
0 commit comments