From 367f4ebbf255778e351aa4b31557dc4f240007c4 Mon Sep 17 00:00:00 2001 From: andrewblond Date: Fri, 27 Mar 2015 22:02:10 +0300 Subject: [PATCH] Fixed tests: resume streams for cases with errors --- test/schemes/flat.test.js | 3 ++- test/schemes/nested.test.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/schemes/flat.test.js b/test/schemes/flat.test.js index 341c78c..ed773f0 100644 --- a/test/schemes/flat.test.js +++ b/test/schemes/flat.test.js @@ -25,7 +25,8 @@ describe('flat scheme', function () { walker.on('error', function (err) { err.must.throw(); done(); - }); + }) + .resume(); }); describe('ignore', function () { diff --git a/test/schemes/nested.test.js b/test/schemes/nested.test.js index 351e81b..2d70f4c 100644 --- a/test/schemes/nested.test.js +++ b/test/schemes/nested.test.js @@ -25,7 +25,8 @@ describe('nested scheme', function () { walker.on('error', function (err) { err.must.throw(); done(); - }); + }) + .resume(); }); describe('ignore', function () {