fix relative paths

This commit is contained in:
moos 2012-05-30 17:10:44 -07:00
parent 2652779259
commit 39dce5b249
2 changed files with 8 additions and 8 deletions

View File

@ -17,9 +17,8 @@ var program = require('commander'),
_ = require('underscore')._, _ = require('underscore')._,
fs = require('fs'), fs = require('fs'),
POS = {noun:'Noun', adj:'Adjective', verb:'Verb', adv:'Adverb'}, POS = {noun:'Noun', adj:'Adjective', verb:'Verb', adv:'Adverb'},
version = JSON.parse(fs.readFileSync('../package.json', 'utf8')).version version = JSON.parse(fs.readFileSync(__dirname + '/../package.json', 'utf8')).version,
nWords, nWords;
;
program program
.version(version) .version(version)

View File

@ -13,27 +13,28 @@
* Released under MIT license * Released under MIT license
*/ */
var var
exec = require('child_process').exec; exec = require('child_process').exec,
cmd = 'node ' + __dirname + '/../tools/validate ';
describe('validate isX() using fastIndex', function() { describe('validate isX() using fastIndex', function() {
it('should validate index.noun', function() { it('should validate index.noun', function() {
exec('node ../tools/validate index.noun', callback); exec(cmd + 'index.noun', callback);
asyncSpecWait(); asyncSpecWait();
}); });
it('should validate index.verb', function() { it('should validate index.verb', function() {
exec('node ../tools/validate index.verb', callback); exec(cmd + 'index.verb', callback);
asyncSpecWait(); asyncSpecWait();
}); });
it('should validate index.adv', function() { it('should validate index.adv', function() {
exec('node ../tools/validate index.adv', callback); exec(cmd + 'index.adv', callback);
asyncSpecWait(); asyncSpecWait();
}); });
it('should validate index.adj', function() { it('should validate index.adj', function() {
exec('node ../tools/validate index.adj', callback); exec(cmd + 'index.adj', callback);
asyncSpecWait(); asyncSpecWait();
}); });