mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
test(cli): fix tests for running in .travis
This commit is contained in:
parent
d079154260
commit
1a764b0280
|
@ -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**'
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user