Skip to content

Commit

Permalink
add acceptance tests for all help commands
Browse files Browse the repository at this point in the history
Also removed duplicate aliases, as well as reordered aliases for
consistency
  • Loading branch information
Kelly Selden committed Aug 9, 2015
1 parent ce0f5ee commit ab9197e
Show file tree
Hide file tree
Showing 18 changed files with 945 additions and 332 deletions.
2 changes: 1 addition & 1 deletion lib/commands/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ module.exports = Command.extend({
name: 'help',
works: 'everywhere',
description: 'Outputs the usage instructions for all commands or the provided command',
aliases: [undefined, 'h', 'help', '-h', '--help'],
aliases: [undefined, 'h', '--help', '-h'],

availableOptions: [
{ name: 'verbose', type: Boolean, default: false, aliases: ['v'] }
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ var defaultPortNumber = 7357;

module.exports = Command.extend({
name: 'test',
aliases: ['test', 't'],
aliases: ['t'],
description: 'Runs your app\'s test suite.',

availableOptions: [
Expand Down
2 changes: 1 addition & 1 deletion lib/commands/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = Command.extend({
{ name: 'verbose', type: Boolean, default: false }
],

aliases: ['v', 'version', '-v', '--version'],
aliases: ['v', '--version', '-v'],
run: function(options) {
var versions = process.versions;
versions['npm'] = require('npm').version;
Expand Down
233 changes: 0 additions & 233 deletions tests/acceptance/help-generate-test.js

This file was deleted.

95 changes: 0 additions & 95 deletions tests/acceptance/help-test.js

This file was deleted.

Loading

0 comments on commit ab9197e

Please sign in to comment.