Skip to content

Commit 59c63b9

Browse files
committed
add small test for console
1 parent 6f8916f commit 59c63b9

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

test/console.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
/*globals describe, it*/
2+
var Console = require('../lib/console.js');
3+
var assert = require('assert');
4+
5+
describe('embark.Console', function() {
6+
var console = new Console();
7+
8+
describe('#executeCmd', function() {
9+
10+
describe('command: help', function() {
11+
12+
it('i should provide a help text', function(done) {
13+
console.executeCmd('help', function(output) {
14+
var lines = output.split('\n');
15+
assert.equal(lines[0], 'Welcome to Embark 2');
16+
assert.equal(lines[2], 'possible commands are:');
17+
done();
18+
});
19+
});
20+
});
21+
});
22+
});

0 commit comments

Comments
 (0)