Skip to content

Commit

Permalink
Fix eslint and travis issue
Browse files Browse the repository at this point in the history
Signed-off-by: Tao Wang <twang2218@gmail.com>
  • Loading branch information
twang2218 committed Jul 1, 2017
1 parent ae072e0 commit 1074412
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 22 deletions.
28 changes: 13 additions & 15 deletions .travis.yml
@@ -1,22 +1,20 @@
language: node_js
node_js:
- "node"
- "8"
- "6"
- "4"

- node
- '8'
- '6'
- '4'
git:
depth: 10

before_script: yarn build
after_success: yarn test-coveralls

deploy:
provider: npm
email: twang2218@gmail.com
api_key:
secure: Sicv8seFjnQWEBp30CtwSuZW3yYMx4lNyYiOGpny31N5UXl1ob80j4gSj2jzFmB76/Jf47oIB0p3QhkGm1Rqt2d550nP008gj8ndD4pYwO/473lmViEZ31vUVspJ58ryQDwQ9ilDkh3+d/Jg7rq1252EeglaVPMLc/yTKT/IXIj/r5ouVnaW1cE8DS5HeMzz2aWvEb8ZSeCvYApYgK+W7EVgnbeprs5BryhZDWhtlSI/ispe/8eK2aF/BOkIYWUjhZzsEQ0/5RKNpnt89GDh4h3j9A91OmauX9Odjeu4nEQhQl0MKmj2LTzwaW71sBdOZ8m7nGVdrIIJfraO7LLpW8BR8JxIDhmDxRtgzYRa3Q/KjeZDaBGHAjqCpVRgigsJ51z8vMoQhJetvSvOz61tNiw36JedarTNOTj3rYaaeAsjsS5uNyQtCObB/14/ghSDAsaNvccLsCsEwrYKQ05pV7Wzhgs7R6tpehHj0kKw7rgVxRoWq+eWk+gnmtbMALCS/gJJsrCTFlpLTJRFgiXrr0KGRza3sqpy4x84XiBz3WCmHxe8uKwL6zI257z4T4APkagqYXSH7eql9wIwYSkuugjA5Hlnp9vXcPf2soHLqFMnW6ThNsqfn1vChOAhBCCHT8/mNG8w90FpWgQJF5obx88zv44pZQzu+GJOrOYtW3U=
on:
tags: true
repo: twang2218/node-cba-netbank
skip_cleanup: true
provider: npm
email: twang2218@gmail.com
api_key:
secure: YrqLetpC22L3ntvLbujg5S9un9gvYmLYnDoCT3FSydS1Q7Expcii5C9w+eZ+kM/nvuZViHFQ3TApilHdrVAcnMBh2kkW4Yixo5uCMZoOZ14I3eTQntbG7G14ZmN33mzh89uT56ESZEFnNBBHYp7gOllVNgL2tuMY+nVmLfZb7pM=
on:
tags: true
repo: twang2218/node-cba-netbank
branch: master
skip_cleanup: true
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -45,7 +45,7 @@
"start": "node dist/cli.js",
"start-debug": "DEBUG=node-cba-netbank yarn start",
"build": "babel src -d dist",
"prepublish": "yarn build",
"prepare": "yarn build",
"pretest": "yarn build && yarn eslint",
"eslint": "eslint src test",
"test": "jest --coverage --verbose",
Expand Down
9 changes: 3 additions & 6 deletions src/cli.js
@@ -1,9 +1,11 @@
#!/usr/bin/env node

/* eslint-disable no-use-before-define */

// Dependencies
const chalk = require('chalk');
const inquirer = require('inquirer');
const yargs = require('yargs');
// const yargs = require('yargs');
const netbank = require('..');
const moment = require('moment-timezone');
const Table = require('easy-table');
Expand All @@ -20,11 +22,6 @@ function getAccountTitle(account) {
return title;
}

function getTransactionTitle(transaction) {
const title = `${chalk.italic.yellow(moment(transaction.timestamp).format('YYYY-MM-DD HH:mm'))}: ${transaction.description.replace(/\n/g, '')}\t${renderCurrency(transaction.amount)}`;
return title;
}

function fetchHistory(answer) {
debug(`fetchHistory(): accounts[${accounts.length}]`);
debug(`[${accounts.map(a => a.name)}]`);
Expand Down

0 comments on commit 1074412

Please sign in to comment.