From 35d25e09ac7f4b9d33f81444bdf4bc266b50d05c Mon Sep 17 00:00:00 2001 From: Blaine Bublitz Date: Fri, 14 Feb 2014 00:00:57 -0700 Subject: [PATCH] make sure jade error is instance of error --- test/error.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/error.js b/test/error.js index 9d764bf..903f632 100644 --- a/test/error.js +++ b/test/error.js @@ -13,6 +13,7 @@ test('should emit errors of jade correctly', function(t){ .pipe(task() .on('error', function(err){ t.ok(err); + t.ok(err instanceof Error); t.end(); })); });