embark/test/console.js

23 lines
588 B
JavaScript
Raw Normal View History

2017-01-08 20:47:15 +00:00
/*globals describe, it*/
var Console = require('../lib/console.js');
var assert = require('assert');
describe('embark.Console', function() {
var console = new Console();
describe('#executeCmd', function() {
describe('command: help', function() {
it('it should provide a help text', function(done) {
2017-01-08 20:47:15 +00:00
console.executeCmd('help', function(output) {
var lines = output.split('\n');
assert.equal(lines[0], 'Welcome to Embark 2');
assert.equal(lines[2], 'possible commands are:');
done();
});
});
});
});
});