Comparing version 3.0.1 to 4.0.0
{ | ||
"name": "find-rc", | ||
"version": "3.0.1", | ||
"version": "4.0.0", | ||
"description": "Find a .rc file given a name", | ||
@@ -23,6 +23,6 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"belly-button": "^2.0.1", | ||
"code": "^3.0.0", | ||
"lab": "^10.7.1" | ||
"belly-button": "5.x.x", | ||
"code": "5.x.x", | ||
"lab": "18.x.x" | ||
} | ||
} |
@@ -13,25 +13,22 @@ 'use strict'; | ||
it('finds an rc in the current working directory', (done) => { | ||
it('finds an rc in the current working directory', () => { | ||
const filePath = FindRc('find'); | ||
expect(filePath).to.exist(); | ||
expect(filePath).to.contain('.findrc.js'); | ||
done(); | ||
}); | ||
it('finds a file in a parent directory', (done) => { | ||
it('finds a file in a parent directory', () => { | ||
const filePath = FindRc('find', __dirname); | ||
expect(filePath).to.exist(); | ||
expect(filePath).to.contain('.findrc.js'); | ||
done(); | ||
}); | ||
it('returns undefined when a file isn\'t found', (done) => { | ||
it('returns undefined when a file isn\'t found', () => { | ||
const filePath = FindRc('no_way_will_this_exist'); | ||
expect(filePath).to.not.exist(); | ||
done(); | ||
}); | ||
it('returns undefined when a file isn\'t found and env.USERPROFILE is set', (done) => { | ||
it('returns undefined when a file isn\'t found and env.USERPROFILE is set', () => { | ||
process.env.USERPROFILE = process.env.HOME; | ||
@@ -41,3 +38,2 @@ delete process.env.HOME; | ||
expect(filePath).to.not.exist(); | ||
done(); | ||
}); |
Sorry, the diff of this file is not supported yet
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
6017
72