mirror of
https://github.com/showdownjs/showdown.git
synced 2024-03-22 13:30:55 +08:00
chore: minor fix in tests
This commit is contained in:
parent
7acd65e498
commit
1f4a9885cc
|
@ -282,7 +282,7 @@ function makehtmlCommand (options, cmd) {
|
|||
converter.addExtension(ext, options.extensions[i]);
|
||||
messenger.printMsg(options.extensions[i] + ' loaded...');
|
||||
} catch (e) {
|
||||
messenger.printError('Could not load extension ' + options.extensions[i] + '. Reason:');
|
||||
messenger.printError('ERROR: Could not load extension ' + options.extensions[i] + '. Reason:');
|
||||
messenger.errorExit(e);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -180,10 +180,11 @@ describe('showdown cli', function () {
|
|||
});
|
||||
|
||||
it('should display errors', function () {
|
||||
var proc = spawnCLI('makehtml', ['-q', '-i']);
|
||||
//proc.status.should.equal(1);
|
||||
var proc = spawnCLI('makehtml', ['-q', '-i', '-e', 'foo'], {input: 'f'});
|
||||
proc.status.should.equal(1);
|
||||
expect(proc.output).to.be.null; // jshint ignore:line
|
||||
proc.stdout.should.equal('');
|
||||
console.log(proc.stderr);
|
||||
proc.stderr.should.match(/^ERROR:/);
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user