--
This commit is contained in:
parent
24f3d27984
commit
6b60015c02
9588 changed files with 1149251 additions and 49 deletions
13
node_modules/config-chain/test/find-file.js
generated
vendored
Normal file
13
node_modules/config-chain/test/find-file.js
generated
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
var fs = require('fs')
|
||||
, assert = require('assert')
|
||||
, objx = {
|
||||
rand: Math.random()
|
||||
}
|
||||
|
||||
fs.writeFileSync('/tmp/random-test-config.json', JSON.stringify(objx))
|
||||
|
||||
var cc = require('../')
|
||||
var path = cc.find('tmp/random-test-config.json')
|
||||
|
||||
assert.equal(path, '/tmp/random-test-config.json')
|
||||
Loading…
Reference in a new issue