1
0
mirror of https://github.com/angular/angular-cli.git synced 2025-05-28 02:58:04 +08:00
Michał Gołębiowski 20484598dd chore: change all Angular-CLI occurrences to Angular CLI ()
* chore: change all Angular-CLI occurrences to Angular CLI

* docs: remove one remaining angular-cli reference
2017-02-03 15:50:24 +00:00

38 lines
1.0 KiB
JavaScript

'use strict';
const ng = require('../helpers/ng');
const tmp = require('../helpers/tmp');
const SilentError = require('silent-error');
const expect = require('chai').expect;
describe('Acceptance: ng destroy', function () {
beforeEach(function () {
this.timeout(10000);
return tmp.setup('./tmp').then(function () {
process.chdir('./tmp');
}).then(function () {
return ng(['new', 'foo', '--skip-npm']);
});
});
afterEach(function () {
return tmp.teardown('./tmp');
});
it('without args should fail', function () {
return ng(['destroy']).then(() => {
throw new SilentError('ng destroy should fail.');
}, (err) => {
expect(err.message).to.equal('The destroy command is not supported by Angular CLI.');
});
});
it('with args should fail', function () {
return ng(['destroy', 'something']).then(() => {
throw new SilentError('ng destroy something should fail.');
}, (err) => {
expect(err.message).to.equal('The destroy command is not supported by Angular CLI.');
});
});
});