Skip to content

Commit ed3e49a

Browse files
committed
Fix instance-of check in tests for different VFile constructors
1 parent 4abf5c8 commit ed3e49a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: test/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -749,8 +749,8 @@ describe('function transformer(ast, file, next?)', function () {
749749
* Plugin.
750750
*/
751751
function assertion(ast, file) {
752-
assert(ast === result);
753-
assert(file instanceof VFile);
752+
assert.equal(ast, result);
753+
assert('hasFailed' in file);
754754

755755
isInvoked = true;
756756
}

0 commit comments

Comments
 (0)