detect-invalid-requires
Advanced tools
Comparing version 0.1.4 to 0.1.5
{ | ||
"name": "detect-invalid-requires", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "utility to detect requires that are not legal in a case-sensitive OS", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -1,2 +0,4 @@ | ||
Simple utility to detect invalid modular requires that do not match in a case sensitive environment. Useful when developers are all on case insensitive dev machines (OSX and Windows), yet CI server is Linux. | ||
Simple utility to detect invalid relative require paths that do not exist. | ||
It is case-sensitive, so in particular it is useful when developers are all on | ||
case insensitive dev machines (OSX and Windows), yet CI server is Linux. | ||
@@ -7,2 +9,8 @@ Usage | ||
npm install -g detect-invalid-requires | ||
detect-invalid-requires (files) | ||
detect-invalid-requires [options] (files) | ||
Options | ||
===== | ||
`-i, --ignore list` Comma delimited list of path strings to ignore |
'use strict'; | ||
var expect = require('chai').expect; | ||
var path = require('path'); | ||
var detector = require('../lib/index'); | ||
@@ -9,3 +8,3 @@ | ||
it('finds invalid paths that are case sensitive', function (done) { | ||
var invalid = detector('./test/harness', {}, function (invalid) { | ||
detector('./test/harness', {}, function (invalid) { | ||
expect(invalid.length).to.equal(1); | ||
@@ -17,3 +16,3 @@ expect(invalid[0].path).to.equal('./fileb'); | ||
it('ignores patterns', function (done) { | ||
var invalid = detector('./test/harness', { ignore: ['folderA'] }, function (invalid) { | ||
detector('./test/harness', { ignore: ['folderA'] }, function (invalid) { | ||
expect(invalid.length).to.equal(0); | ||
@@ -20,0 +19,0 @@ done(); |
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
4574
16
65