Skip to content
This repository was archived by the owner on Aug 12, 2020. It is now read-only.

Commit 6d6fe24

Browse files
authored
Merge pull request #60 from noffle/linty
Fix linting errors
2 parents e1a10fd + 9234319 commit 6d6fe24

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

test/test-exporter.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,16 @@ module.exports = function (repo) {
3737
testExport.on('error', (err) => {
3838
expect(err).to.not.exist
3939
})
40-
testExport.pipe(concat((files) => {
40+
testExport.pipe(concat(onFiles))
41+
42+
function onFiles (files) {
4143
expect(files).to.be.length(1)
4244
expect(files[0].path).to.equal(hash)
4345
files[0].content.pipe(concat((bldata) => {
4446
expect(bldata).to.deep.equal(unmarsh.data)
4547
done()
4648
}))
47-
}))
49+
}
4850
})
4951
})
5052

@@ -59,13 +61,15 @@ module.exports = function (repo) {
5961
testExport.on('error', (err) => {
6062
expect(err).to.not.exist
6163
})
62-
testExport.pipe(concat((files) => {
64+
testExport.pipe(concat(onFiles))
65+
66+
function onFiles (files) {
6367
expect(files).to.be.length(1)
6468
files[0].content.pipe(concat((bldata) => {
6569
expect(bldata).to.deep.equal(unmarsh.data)
6670
done()
6771
}))
68-
}))
72+
}
6973
})
7074
})
7175

0 commit comments

Comments
 (0)