Skip to content

Commit

Permalink
fix missing file
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmed-dinar committed Oct 23, 2016
1 parent 6d6219e commit 874ae5d
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 9 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@
"cli-table2": "^0.2.0",
"commander": "^2.9.0",
"crypto-js": "^3.1.7",
"debug": "^2.2.0",
"figlet": "^1.2.0",
"has": "^1.0.1",
"inquirer": "^1.2.1",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/api/submission.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ import { line } from 'cli-spinners';
import ora from 'ora';
import { waterfall, whilst } from 'async';
import verdicts from '../verdicts';
import { log, logr, getHomeDir, validateEmpty } from '../helpers';
import clear from '../utils/clear';
import { log, logr, getHomeDir, validateEmpty, clear } from '../helpers';


var debugs = debug('CF:submission');
var spinner = ora({ spinner: line });
Expand Down
9 changes: 9 additions & 0 deletions src/lib/helpers.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ export function isUnix() {
}


/**
*
*/
/* istanbul ignore next */
export function clear() {
process.stdout.write('\x1B[H\x1B[J');
}


/**
* Get system home dir ( Windows C:/Users/{user}, Unix ~/ )
* @returns {*}
Expand Down
5 changes: 0 additions & 5 deletions src/lib/utils/clear.js

This file was deleted.

2 changes: 1 addition & 1 deletion tests/helpers/submission_helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ module.exports = function(readF,promptF,getF){
this.s5 = sinon.stub(process.stderr,'write');
this.s6 = sinon.stub(helpers,'logr');
this.s7 = sinon.stub(helpers,'log');
this.s8 = sinon.stub(helpers,'clearSreen');
this.s8 = sinon.stub(helpers,'clear');
});
afterEach(function(){
this.s1.restore();
Expand Down

0 comments on commit 874ae5d

Please sign in to comment.