mirror of
https://github.com/bower/bower.git
synced 2026-01-14 00:38:03 -05:00
24 lines
629 B
JavaScript
24 lines
629 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());
|
|
});
|
|
});
|