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

Commit

Permalink
Fix linting errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
hackergrrl committed Aug 12, 2016
1 parent e1a10fd commit 9234319
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions test/test-exporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}))
}))
}
})
})

Expand All @@ -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()
}))
}))
}
})
})

Expand Down

0 comments on commit 9234319

Please sign in to comment.