diff --git a/index.js b/index.js index 3c8c405..0394055 100644 --- a/index.js +++ b/index.js @@ -344,3 +344,6 @@ module.exports.ensureParsed = ensureParsed; module.exports.extract = extract; module.exports.compilePattern = compilePattern; module.exports.depFinder = depFinder; +module.exports.STOP = STOP; +module.exports.SKIP_BRANCH = SKIP_BRANCH; +module.exports.traverse = traverse; diff --git a/spec/index-exports.spec.js b/spec/index-exports.spec.js new file mode 100644 index 0000000..4dd0262 --- /dev/null +++ b/spec/index-exports.spec.js @@ -0,0 +1,17 @@ +'use strict'; +const test = require('tape'); + +const astMatcher = require('../index'); + +test('got exports', t => { + t.ok(astMatcher); + t.ok(astMatcher.setParser); + t.ok(astMatcher.ensureParsed); + t.ok(astMatcher.extract); + t.ok(astMatcher.compilePattern); + t.ok(astMatcher.depFinder); + t.ok(astMatcher.hasOwnProperty('STOP')); + t.ok(astMatcher.hasOwnProperty('SKIP_BRANCH')); + t.ok(astMatcher.traverse); + t.end(); +});