Jack Mallers
7 years ago
6 changed files with 125 additions and 2 deletions
@ -0,0 +1,22 @@ |
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP |
|||
|
|||
exports[`reducers channelsReducer should handle initial state 1`] = ` |
|||
Object { |
|||
"channel": null, |
|||
"channelForm": Object { |
|||
"isOpen": false, |
|||
"local_amt": "", |
|||
"node_key": "", |
|||
"push_amt": "", |
|||
}, |
|||
"channels": Array [], |
|||
"channelsLoading": false, |
|||
"openingChannel": false, |
|||
"pendingChannels": Object { |
|||
"pending_closing_channels": Array [], |
|||
"pending_force_closing_channels": Array [], |
|||
"pending_open_channels": Array [], |
|||
"total_limbo_balance": "", |
|||
}, |
|||
} |
|||
`; |
@ -0,0 +1,17 @@ |
|||
import channelsReducer, { |
|||
SET_CHANNEL_FORM, |
|||
SET_CHANNEL, |
|||
GET_CHANNELS, |
|||
RECEIVE_CHANNELS, |
|||
OPENING_CHANNEL, |
|||
OPENING_SUCCESSFUL, |
|||
OPENING_FAILURE |
|||
} from '../../app/reducers/channels' |
|||
|
|||
describe('reducers', () => { |
|||
describe('channelsReducer', () => { |
|||
it('should handle initial state', () => { |
|||
expect(channelsReducer(undefined, {})).toMatchSnapshot() |
|||
}) |
|||
}) |
|||
}) |
Loading…
Reference in new issue