Skip to content

Commit

Permalink
fix coverage.
Browse files Browse the repository at this point in the history
  • Loading branch information
bcoe committed Feb 11, 2015
1 parent 82e793f commit 5768447
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
11 changes: 3 additions & 8 deletions lib/usage.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
var wordwrap = require('wordwrap'),
wsize = require('window-size');

module.exports = Usage;

function Usage (yargs) {
module.exports = function (yargs) {
var self = {};

// methods for ouputting/building failure message.
Expand Down Expand Up @@ -235,12 +233,9 @@ function Usage (yargs) {
);
}

// guess the width of the console window.
// guess the width of the console window, max-width 100.
function windowWidth() {
var wsizeMax = 80;

if (!wsize.width) return null;
else return Math.min(100, wsize.width);
return wsize.width ? Math.min(100, wsize.width) : null;
}

// logic for displaying application version.
Expand Down
4 changes: 1 addition & 3 deletions lib/validation.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// validation-type-stuff, missing params,
// bad implications, custom checks.
module.exports = Validation;

function Validation (yargs, usage) {
module.exports = function (yargs, usage) {
var self = {};

// validate appropriate # of non-option
Expand Down

0 comments on commit 5768447

Please sign in to comment.