diff --git a/test/console.js b/test/console.js index a1d987e1..42ca6f54 100644 --- a/test/console.js +++ b/test/console.js @@ -2,10 +2,11 @@ var Console = require('../lib/dashboard/console.js'); var Plugins = require('../lib/core/plugins.js'); var assert = require('assert'); +var version = require('../package.json')['version']; describe('embark.Console', function() { var plugins = new Plugins({plugins: {}}); - var console = new Console({plugins: plugins, version: '2.3.1'}); + var console = new Console({plugins: plugins, version: version}); describe('#executeCmd', function() { @@ -14,7 +15,7 @@ describe('embark.Console', function() { it('it should provide a help text', function(done) { console.executeCmd('help', function(output) { var lines = output.split('\n'); - assert.equal(lines[0], 'Welcome to Embark 2.3.1'); + assert.equal(lines[0], 'Welcome to Embark ' + version); assert.equal(lines[2], 'possible commands are:'); done(); });