diff --git a/test/extract.js b/test/extract.js index d4b6604..26d20e7 100644 --- a/test/extract.js +++ b/test/extract.js @@ -251,7 +251,7 @@ test('pax', function (t) { }) test('types', function (t) { - t.plan(3) + t.plan(5) const extract = tar.extract() let noEntries = false @@ -283,6 +283,9 @@ test('types', function (t) { stream.on('data', function () { t.ok(false) }) + stream.on('end', function () { + t.pass('ended') + }) extract.once('entry', onlink) cb() } @@ -306,6 +309,9 @@ test('types', function (t) { stream.on('data', function () { t.ok(false) }) + stream.on('end', function () { + t.pass('ended') + }) noEntries = true cb() }