We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f8916f commit 59c63b9Copy full SHA for 59c63b9
test/console.js
@@ -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