Comparing version 1.0.5 to 1.1.0
@@ -0,1 +1,5 @@ | ||
1.1.0 / 2020-08-18 | ||
================== | ||
* feat: support `import` statements by using esprima `parseModule()` #22 | ||
1.0.5 / 2019-06-15 | ||
@@ -2,0 +6,0 @@ ================== |
@@ -13,3 +13,3 @@ 'use strict'; | ||
var tree = esprima.parse(contents, { attachComment: true, range: true }); | ||
var tree = esprima.parseModule(contents, { attachComment: true, range: true }); | ||
@@ -16,0 +16,0 @@ var visitorFactory = function() { |
{ | ||
"name": "acquit", | ||
"version": "1.0.5", | ||
"version": "1.1.0", | ||
"description": "Parse BDD tests (Mocha, Jasmine) to generate documentation", | ||
@@ -5,0 +5,0 @@ "homepage": "http://acquit.mongoosejs.io", |
@@ -28,2 +28,12 @@ var assert = require('assert'); | ||
}); | ||
it('handles import statements', function() { | ||
const ret = acquit.parse(` | ||
import foo from 'bar'; | ||
it('test 1', function() { assert.equal('A', 'A'); }); | ||
`); | ||
assert.equal(ret.length, 1); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37934
552