grunt-import-clean
Advanced tools
Comparing version 0.1.6 to 0.1.7
@@ -34,2 +34,3 @@ /* | ||
wildcard: 'test/wildcard/*.js', | ||
default_as: 'test/default_as/*.js', | ||
options: { test: true } | ||
@@ -36,0 +37,0 @@ }, |
{ | ||
"name": "grunt-import-clean", | ||
"description": "identify unused imports in es6 modules", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"homepage": "https://github.com/elnarddogg/grunt-import-clean", | ||
@@ -6,0 +6,0 @@ "author": { |
@@ -14,3 +14,3 @@ module.exports = (function() { | ||
var RE_END = /from.*('|"|;)$/i; | ||
var RE_CLEAN = /\s\*\sas\s|'|"|\s|\t/gi; | ||
var RE_CLEAN = /\s(\*|default)\sas\s|'|"|\s|\t/gi; | ||
var RE_PARSE1 = /import(.*)from/i; | ||
@@ -17,0 +17,0 @@ var RE_PARSE2 = /\{(.*)\}/i; |
@@ -64,2 +64,13 @@ (function() { | ||
test.done(); | ||
}, | ||
default_as: function( test ) { | ||
test.expect( 1 ); | ||
var actual = grunt.file.read( 'tmp/default_as.json' ); | ||
var expected = grunt.file.read( 'test/default_as/output.json' ); | ||
test.equal( actual , expected , 'should describe default_as behavior.' ); | ||
test.done(); | ||
} | ||
@@ -66,0 +77,0 @@ |
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
28894
27
970