fix relative paths
This commit is contained in:
parent
2652779259
commit
39dce5b249
|
@ -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)
|
||||||
|
|
|
@ -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();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue