Jelajahi Sumber

test(cli): fix tests for running in .travis

Estevão Soares dos Santos 10 tahun lalu
induk
melakukan
1a764b0280
1 mengubah file dengan 3 tambahan dan 2 penghapusan
  1. 3 2
      test/node/cli.js

+ 3 - 2
test/node/cli.js

@@ -1,10 +1,11 @@
-var execSync = require('child_process').execSync;
+var execSync = require('child_process').execSync,
+    cmd = 'node bin/showdown.js';
 
 describe('showdown cli', function () {
   'use strict';
 
   it('basic stdin stdout', function () {
-    var otp = execSync('showdown makehtml', {
+    var otp = execSync(cmd + ' makehtml', {
       encoding: 'utf8',
       input: '**foo**'
     });