Browse Source

fix(lint/README): fix linting error and README

renovate/lint-staged-8.x
Jack Mallers 8 years ago
parent
commit
66c329f09d
  1. 16
      README.md
  2. 2
      test/reducers/peers.spec.js

16
README.md

@ -12,7 +12,6 @@ uses a Node.js proxy and,
Join us on [slack](https://join.slack.com/t/zaphq/shared_invite/MjI2MTY4NTcwMDUyLTE1MDI2OTA0ODAtNTRjMTY4YTNjNA) to discuss development, design and product Join us on [slack](https://join.slack.com/t/zaphq/shared_invite/MjI2MTY4NTcwMDUyLTE1MDI2OTA0ODAtNTRjMTY4YTNjNA) to discuss development, design and product
## Install ## Install
> For now Zap assumes you are running BTCD and LND (will change soon). Please see [installation](https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md) to get that setup first > For now Zap assumes you are running BTCD and LND (will change soon). Please see [installation](https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md) to get that setup first
* **Note: requires a node version >= 7 and an npm version >= 4.** * **Note: requires a node version >= 7 and an npm version >= 4.**
@ -30,15 +29,23 @@ $ cd zap-desktop
$ yarn $ yarn
``` ```
## Test
```bash
$ npm run test
```
## Lint
```bash
$ npm run lint
```
## Current Todo List (Last updated August 15th) ## Current Todo List (Last updated August 15th)
Join us on [slack](https://join.slack.com/t/zaphq/shared_invite/MjI2MTY4NTcwMDUyLTE1MDI2OTA0ODAtNTRjMTY4YTNjNA) before tackling a todo to avoid duplicate work. This list will be updated daily to show what todos are being worked on Join us on [slack](https://join.slack.com/t/zaphq/shared_invite/MjI2MTY4NTcwMDUyLTE1MDI2OTA0ODAtNTRjMTY4YTNjNA) before tackling a todo to avoid duplicate work. This list will be updated daily to show what todos are being worked on
### Refactor ### Refactor
- [ ] Move Node.js proxy to [ipcRenderer](https://electron.atom.io/docs/api/ipc-renderer/) (roasbeef recommendation) - [ ] Move Node.js proxy to [ipcRenderer](https://electron.atom.io/docs/api/ipc-renderer/) (roasbeef recommendation)
- [ ] Payments modal using selector
- [ ] Invoices modal using selector
- [ ] Use two package.json [structure](https://github.com/electron-userland/electron-builder/wiki/Two-package.json-Structure) - [ ] Use two package.json [structure](https://github.com/electron-userland/electron-builder/wiki/Two-package.json-Structure)
- [ ] General refactor (I know this TODO sucks but the code is a bit sloppy still, need to spend time refactoring) - [ ] General refactor (I know this TODO sucks but the code is a bit sloppy still)
### Features ### Features
- [ ] Configurable BTCD + LN node connection (do not assume/rely on localhost) - [ ] Configurable BTCD + LN node connection (do not assume/rely on localhost)
@ -67,6 +74,7 @@ Join us on [slack](https://join.slack.com/t/zaphq/shared_invite/MjI2MTY4NTcwMDUy
- [ ] Component tests - [ ] Component tests
- [ ] Container tests - [ ] Container tests
- [ ] API call tests - [ ] API call tests
- [ ]
## Q & A (Quality and Assurance) ## Q & A (Quality and Assurance)

2
test/reducers/peers.spec.js

@ -93,7 +93,7 @@ describe('reducers', () => {
expect(peersReducer(undefined, { type: GET_PEERS })).toMatchSnapshot() expect(peersReducer(undefined, { type: GET_PEERS })).toMatchSnapshot()
}) })
it('should correctly connectFailure', () => { it('should correctly receivePeers', () => {
expect(peersReducer(undefined, { type: RECEIVE_PEERS, peers: 'foo' })).toMatchSnapshot() expect(peersReducer(undefined, { type: RECEIVE_PEERS, peers: 'foo' })).toMatchSnapshot()
}) })
}) })

Loading…
Cancel
Save