summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/config-chain/test/find-file.js
blob: 23cde52ea9d8ded28ccccaeee1df2993c48e5722 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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')