]> gerrit.simantics Code Review - simantics/district.git/blob - test/find-file.js
Hide "enabled" column for non-component type tech type tables
[simantics/district.git] / test / find-file.js
1
2 var fs = require('fs')
3   , assert = require('assert')
4   , objx = {
5     rand: Math.random()
6   }
7
8 fs.writeFileSync('/tmp/random-test-config.json', JSON.stringify(objx))
9
10 var cc = require('../')
11 var path = cc.find('tmp/random-test-config.json')
12
13 assert.equal(path, '/tmp/random-test-config.json')