Skip to content
Browse files

fix relative paths

  • Loading branch information...
1 parent 2652779 commit 39dce5b2495b99b05d7f2694b91d22935a72af1e @moos committed
Showing with 8 additions and 8 deletions.
  1. +2 −3 bin/wordpos-cli.js
  2. +6 −5 spec/validate_spec.js
View
5 bin/wordpos-cli.js
@@ -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)
View
11 spec/validate_spec.js
@@ -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();
});

0 comments on commit 39dce5b

Please sign in to comment.
Something went wrong with that request. Please try again.