From ed3e49a8e65af3518c92ebd9afa5bd251ef4d2fd Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Fri, 31 Jul 2015 11:48:34 +0200 Subject: [PATCH] Fix instance-of check in tests for different VFile constructors --- test/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/index.js b/test/index.js index 72d07900b..00909446f 100644 --- a/test/index.js +++ b/test/index.js @@ -749,8 +749,8 @@ describe('function transformer(ast, file, next?)', function () { * Plugin. */ function assertion(ast, file) { - assert(ast === result); - assert(file instanceof VFile); + assert.equal(ast, result); + assert('hasFailed' in file); isInvoked = true; }