From 42f8087436bc65a4505818e0d5f38b9058cb079e Mon Sep 17 00:00:00 2001 From: phated Date: Wed, 9 Jun 2021 03:50:52 +0000 Subject: [PATCH] chore: Run prettier --- test/stream.js | 21 ++++++--------------- test/test.js | 6 +----- 2 files changed, 7 insertions(+), 20 deletions(-) diff --git a/test/stream.js b/test/stream.js index 8f6292b..5d409b7 100644 --- a/test/stream.js +++ b/test/stream.js @@ -14,9 +14,8 @@ const base = path.join(cwd, 'fixtures'); const filePath = path.join(base, 'helloworld.pug'); const fileContents = fs.readFileSync(filePath); - -describe('stream', function() { - it('should handle streaming contents', function(done) { +describe('stream', function () { + it('should handle streaming contents', function (done) { const file = new Vinyl({ path: filePath, base: base, @@ -30,19 +29,15 @@ describe('stream', function() { expect(expected).toEqual(String(files[0].contents)); } - pipe([ - from.obj([file]), - plugin(), - concat(assert), - ], done); + pipe([from.obj([file]), plugin(), concat(assert)], done); }); - it('bubbles errors if the stream errors', function(done) { + it('bubbles errors if the stream errors', function (done) { const file = new Vinyl({ path: filePath, base: base, cwd: cwd, - contents: from([new Error("Boom")]) + contents: from([new Error('Boom')]), }); function assert(err) { @@ -50,10 +45,6 @@ describe('stream', function() { done(); } - pipe([ - from.obj([file]), - plugin(), - concat(), - ], assert); + pipe([from.obj([file]), plugin(), concat()], assert); }); }); diff --git a/test/test.js b/test/test.js index c02d803..f490de2 100644 --- a/test/test.js +++ b/test/test.js @@ -194,10 +194,6 @@ describe('test', function () { expect(newFile.contents).toBe(null); } - - pipe( - [from.obj([file]), task(), concat(assert)], - done - ); + pipe([from.obj([file]), task(), concat(assert)], done); }); });