mirror of
https://github.com/bower/bower.git
synced 2026-04-24 03:00:19 -04:00
24 lines
633 B
JavaScript
24 lines
633 B
JavaScript
var expect = require('expect.js');
|
|
var runBin = require('../helpers').runBin;
|
|
|
|
describe('bower', function () {
|
|
process.env.CI = '1';
|
|
|
|
it('runs bower installation', function () {
|
|
var result = runBin();
|
|
var text = result.stdout.toString();
|
|
|
|
expect(text).to.contain('Usage:');
|
|
expect(text).to.contain('Commands:');
|
|
});
|
|
});
|
|
|
|
describe('abbreviations', function () {
|
|
it('Returns same value than the full command', function () {
|
|
var abbr = runBin(['install']);
|
|
var full = runBin(['i']);
|
|
|
|
expect(abbr.stdout.toString()).to.be.equal(full.stdout.toString());
|
|
});
|
|
});
|