Skip to content

Commit

Permalink
Fix instance-of check in tests for different VFile constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jul 31, 2015
1 parent 4abf5c8 commit ed3e49a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit ed3e49a

Please sign in to comment.