From 92343191a9db9349d93106f524d894fba768c163 Mon Sep 17 00:00:00 2001 From: Stephen Whitmore Date: Fri, 12 Aug 2016 16:05:57 -0700 Subject: [PATCH] Fix linting errors. --- test/test-exporter.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/test-exporter.js b/test/test-exporter.js index e6b76c15..012d141b 100644 --- a/test/test-exporter.js +++ b/test/test-exporter.js @@ -37,14 +37,16 @@ module.exports = function (repo) { testExport.on('error', (err) => { expect(err).to.not.exist }) - testExport.pipe(concat((files) => { + testExport.pipe(concat(onFiles)) + + function onFiles (files) { expect(files).to.be.length(1) expect(files[0].path).to.equal(hash) files[0].content.pipe(concat((bldata) => { expect(bldata).to.deep.equal(unmarsh.data) done() })) - })) + } }) }) @@ -59,13 +61,15 @@ module.exports = function (repo) { testExport.on('error', (err) => { expect(err).to.not.exist }) - testExport.pipe(concat((files) => { + testExport.pipe(concat(onFiles)) + + function onFiles (files) { expect(files).to.be.length(1) files[0].content.pipe(concat((bldata) => { expect(bldata).to.deep.equal(unmarsh.data) done() })) - })) + } }) })