Skip to content

Commit

Permalink
fix(test): fix content.write tests when running in docker
Browse files Browse the repository at this point in the history
  • Loading branch information
zkat committed Apr 3, 2017
1 parent 1948528 commit d2e9b6a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/content.write.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ test('errors if input stream errors', t => {
t.ok(err, 'got an error')
t.ok(!integrity, 'no digest returned')
t.match(err && err.message, 'bleh', 'returns the error from input stream')
fs.readdir(testDir, (err, files) => {
if (err) { throw err }
t.deepEqual(files, [], 'no files created')
fs.stat(contentPath(CACHE, ssri.fromData('foobarbaz')), (err, stat) => {
t.ok(err, 'got an error')
t.equal(err.code, 'ENOENT', 'target file missing. No files created.')
t.end()
})
})
Expand Down

0 comments on commit d2e9b6a

Please sign in to comment.