fix relative paths
This commit is contained in:
parent
2652779259
commit
39dce5b249
|
@ -17,9 +17,8 @@ var program = require('commander'),
|
|||
_ = require('underscore')._,
|
||||
fs = require('fs'),
|
||||
POS = {noun:'Noun', adj:'Adjective', verb:'Verb', adv:'Adverb'},
|
||||
version = JSON.parse(fs.readFileSync('../package.json', 'utf8')).version
|
||||
nWords,
|
||||
;
|
||||
version = JSON.parse(fs.readFileSync(__dirname + '/../package.json', 'utf8')).version,
|
||||
nWords;
|
||||
|
||||
program
|
||||
.version(version)
|
||||
|
|
|
@ -13,27 +13,28 @@
|
|||
* Released under MIT license
|
||||
*/
|
||||
var
|
||||
exec = require('child_process').exec;
|
||||
exec = require('child_process').exec,
|
||||
cmd = 'node ' + __dirname + '/../tools/validate ';
|
||||
|
||||
describe('validate isX() using fastIndex', function() {
|
||||
|
||||
it('should validate index.noun', function() {
|
||||
exec('node ../tools/validate index.noun', callback);
|
||||
exec(cmd + 'index.noun', callback);
|
||||
asyncSpecWait();
|
||||
});
|
||||
|
||||
it('should validate index.verb', function() {
|
||||
exec('node ../tools/validate index.verb', callback);
|
||||
exec(cmd + 'index.verb', callback);
|
||||
asyncSpecWait();
|
||||
});
|
||||
|
||||
it('should validate index.adv', function() {
|
||||
exec('node ../tools/validate index.adv', callback);
|
||||
exec(cmd + 'index.adv', callback);
|
||||
asyncSpecWait();
|
||||
});
|
||||
|
||||
it('should validate index.adj', function() {
|
||||
exec('node ../tools/validate index.adj', callback);
|
||||
exec(cmd + 'index.adj', callback);
|
||||
asyncSpecWait();
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue