Browse Source

fix(lint): fix linting issue in API tests

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
c065262e7b
  1. 4
      test/api/index.spec.js
  2. 15
      test/reducers/__snapshots__/peers.spec.js.snap

4
test/api/index.spec.js

@ -16,12 +16,12 @@ describe('API', () => {
describe('balance', () => {
it('returns wallet balance', async () => {
const wallet_balances = await callApi('wallet_balance')
expect(typeof(wallet_balances.data.balance)).toEqual('string')
expect(typeof (wallet_balances.data.balance)).toEqual('string')
})
it('returns channel balance', async () => {
const channel_balances = await callApi('channel_balance')
expect(typeof(channel_balances.data.balance)).toEqual('string')
expect(typeof (channel_balances.data.balance)).toEqual('string')
})
})

15
test/reducers/__snapshots__/peers.spec.js.snap

@ -15,21 +15,6 @@ Object {
}
`;
exports[`reducers peersReducer should correctly connectFailure 2`] = `
Object {
"connecting": false,
"disconnecting": false,
"peer": null,
"peerForm": Object {
"host": "",
"isOpen": false,
"pubkey": "",
},
"peers": "foo",
"peersLoading": false,
}
`;
exports[`reducers peersReducer should correctly connectPeer 1`] = `
Object {
"connecting": true,

Loading…
Cancel
Save