You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

13 lines
294 B

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')