@@ -357,7 +357,6 @@ describe('PostHTML Render', () => {
357
357
358
358
const fixture = { tag : 'img' , attrs : { src : '<?php echo $foo["bar"] ?>' } } ;
359
359
const expected = '<img src="<?php echo $foo["bar"] ?>">' ;
360
- fs . writeFileSync ( 'test.html' , render ( fixture , options ) ) ;
361
360
expect ( render ( fixture , options ) ) . to . eql ( expected ) ;
362
361
} ) ;
363
362
@@ -366,7 +365,6 @@ describe('PostHTML Render', () => {
366
365
367
366
const fixture = { tag : 'img' , attrs : { src : '<?php echo isset($foo["bar"]) ? $foo["bar"] : ""; ?>' } } ;
368
367
const expected = '<img src="<?php echo isset($foo["bar"]) ? $foo["bar"] : ""; ?>">' ;
369
- fs . writeFileSync ( 'test.html' , render ( fixture , options ) ) ;
370
368
expect ( render ( fixture , options ) ) . to . eql ( expected ) ;
371
369
} ) ;
372
370
} ) ;
@@ -378,7 +376,6 @@ describe('PostHTML Render', () => {
378
376
const fixture = { tag : 'img' , attrs : { src : 'https://example.com/example.png' , onload : 'testFunc("test")' } } ;
379
377
const expected = '<img src=\'https://example.com/example.png\' onload=\'testFunc("test")\'>' ;
380
378
381
- fs . writeFileSync ( 'test.html' , render ( fixture , options ) ) ;
382
379
expect ( render ( fixture , options ) ) . to . eql ( expected ) ;
383
380
} ) ;
384
381
@@ -388,7 +385,6 @@ describe('PostHTML Render', () => {
388
385
const fixture = { tag : 'img' , attrs : { src : 'https://example.com/example.png' , onload : 'testFunc("test")' } } ;
389
386
const expected = '<img src="https://example.com/example.png" onload="testFunc("test")">' ;
390
387
391
- fs . writeFileSync ( 'test.html' , render ( fixture , options ) ) ;
392
388
expect ( render ( fixture , options ) ) . to . eql ( expected ) ;
393
389
} ) ;
394
390
@@ -398,7 +394,6 @@ describe('PostHTML Render', () => {
398
394
const fixture = { tag : 'img' , attrs : { src : 'https://example.com/example.png' , onload : 'testFunc("test")' } } ;
399
395
const expected = '<img src="https://example.com/example.png" onload=\'testFunc("test")\'>' ;
400
396
401
- fs . writeFileSync ( 'test.html' , render ( fixture , options ) ) ;
402
397
expect ( render ( fixture , options ) ) . to . eql ( expected ) ;
403
398
} ) ;
404
399
} ) ;
0 commit comments