amberVersionTest.js 545 B

12345678910111213141516
  1. // Tests if the `amber version` command returns the an amber version number
  2. var assert = require('assert'),
  3. shelljs = require('shelljs');
  4. var AMBER_VERSION_COMMAND = './support/amber-cli.js version';
  5. describe("amber version", function () {
  6. it("should return line with amber version", function () {
  7. this.timeout(7000);
  8. var amberResult = shelljs.exec("node " + AMBER_VERSION_COMMAND, {silent: true}).output;
  9. assert.ok(amberResult.match(/[Aa]mber/));
  10. assert.ok(amberResult.match(/version/));
  11. });
  12. });