Permalink
Browse files

Refactoring.

  • Loading branch information...
vesln committed Jan 18, 2012
1 parent c0aa666 commit a5fb0b3a55625e66497dacf58ab8004977f68646
Showing with 3 additions and 12 deletions.
  1. +1 −2 lib/commands.js
  2. +2 −10 test/commands.test.js
View
@@ -11,7 +11,6 @@
var Request = require('./request');
var reporters = require('./reporters');
var app = require('./index');
-var package = require('package')(module);
var log = console.log;
/**
@@ -25,7 +24,7 @@ var commands = module.exports;
* Outputs lib version.
*/
commands.version = function() {
- log(package.version);
+ log(require('../package.json').version);
};
/**
View
@@ -11,20 +11,12 @@
var commands = require('../lib/commands');
describe('commands', function() {
- it('should have help command', function() {
- commands.help.should.be.ok
- });
-
- it('should have about command', function() {
- commands.about.should.be.ok
- });
-
it('should have version command', function() {
commands.version.should.be.ok
});
- it('should have url command', function() {
- commands.url.should.be.ok
+ it('should have issues command', function() {
+ commands.issues.should.be.ok
});
it('should have set command', function() {

0 comments on commit a5fb0b3

Please sign in to comment.