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

This commit is contained in:
Estevão Soares dos Santos 2015-07-13 05:21:23 +01:00
parent d079154260
commit 1a764b0280

View File

@ -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**'
});