amberVersionTest.js 566 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. process.env.AMBER_CLI = process.env.AMBER_CLI || "node ./support/amber-cli.js";
  5. describe("amber version", function () {
  6. it("should return line with amber version", function () {
  7. this.timeout(7000);
  8. var amberResult = shelljs.exec(process.env.AMBER_CLI + " version", {silent: true}).output;
  9. assert.ok(amberResult.match(/[Aa]mber/));
  10. assert.ok(amberResult.match(/version/));
  11. });
  12. });