Skip to content

Commit

Permalink
fix: try skip cherow test on nodejs v4.
Browse files Browse the repository at this point in the history
  • Loading branch information
3cp committed Apr 4, 2018
1 parent 7778bf6 commit 5ba1637
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# ast-matcher
# ast-matcher [![Build Status](https://travis-ci.org/huochunpeng/ast-matcher.svg?branch=master)](https://travis-ci.org/huochunpeng/ast-matcher)

Create pattern based AST matcher function. So you don't need to be an AST master in order to do static code analysis for JavaScript.

Expand Down
8 changes: 5 additions & 3 deletions spec/cherow.spec.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
'use strict';
const cherow = require('cherow');
const withParser = require('./with-parser');

withParser('cherow', cherow.parseScript);
if (!process.version.startsWith('v4')) {
const cherow = require('cherow');
const withParser = require('./with-parser');
withParser('cherow', cherow.parseScript);
}

0 comments on commit 5ba1637

Please sign in to comment.