Skip to content

Commit 9d22fff

Browse files
committed
test: remove undefined write
1 parent 1a87466 commit 9d22fff

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

test/render.test.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,6 @@ describe('PostHTML Render', () => {
357357

358358
const fixture = {tag: 'img', attrs: {src: '<?php echo $foo["bar"] ?>'}};
359359
const expected = '<img src="<?php echo $foo["bar"] ?>">';
360-
fs.writeFileSync('test.html', render(fixture, options));
361360
expect(render(fixture, options)).to.eql(expected);
362361
});
363362

@@ -366,7 +365,6 @@ describe('PostHTML Render', () => {
366365

367366
const fixture = {tag: 'img', attrs: {src: '<?php echo isset($foo["bar"]) ? $foo["bar"] : ""; ?>'}};
368367
const expected = '<img src="<?php echo isset($foo["bar"]) ? $foo["bar"] : ""; ?>">';
369-
fs.writeFileSync('test.html', render(fixture, options));
370368
expect(render(fixture, options)).to.eql(expected);
371369
});
372370
});
@@ -378,7 +376,6 @@ describe('PostHTML Render', () => {
378376
const fixture = {tag: 'img', attrs: {src: 'https://example.com/example.png', onload: 'testFunc("test")'}};
379377
const expected = '<img src=\'https://example.com/example.png\' onload=\'testFunc("test")\'>';
380378

381-
fs.writeFileSync('test.html', render(fixture, options));
382379
expect(render(fixture, options)).to.eql(expected);
383380
});
384381

@@ -388,7 +385,6 @@ describe('PostHTML Render', () => {
388385
const fixture = {tag: 'img', attrs: {src: 'https://example.com/example.png', onload: 'testFunc("test")'}};
389386
const expected = '<img src="https://example.com/example.png" onload="testFunc("test")">';
390387

391-
fs.writeFileSync('test.html', render(fixture, options));
392388
expect(render(fixture, options)).to.eql(expected);
393389
});
394390

@@ -398,7 +394,6 @@ describe('PostHTML Render', () => {
398394
const fixture = {tag: 'img', attrs: {src: 'https://example.com/example.png', onload: 'testFunc("test")'}};
399395
const expected = '<img src="https://example.com/example.png" onload=\'testFunc("test")\'>';
400396

401-
fs.writeFileSync('test.html', render(fixture, options));
402397
expect(render(fixture, options)).to.eql(expected);
403398
});
404399
});

0 commit comments

Comments
 (0)