diff --git a/test/components/AnimatedCheckmark.spec.js b/test/components/AnimatedCheckmark.spec.js
index 5bc25efe..69727452 100644
--- a/test/components/AnimatedCheckmark.spec.js
+++ b/test/components/AnimatedCheckmark.spec.js
@@ -3,12 +3,13 @@ import { shallow } from 'enzyme'
import Isvg from 'react-inlinesvg'
import AnimatedCheckmark from '../../app/components/AnimatedCheckmark'
+import checkmarkIcon from '../../app/components/AnimatedCheckmark/checkmark.svg'
describe('component.AnimatedCheckmark', () => {
describe('default', () => {
it('should render default component', () => {
const el = shallow()
- expect(el.find(Isvg).props().src).toContain('checkmark.svg')
+ expect(el.find(Isvg).props().src).toContain(checkmarkIcon)
})
})
})
diff --git a/test/components/CryptoIcon.spec.js b/test/components/CryptoIcon.spec.js
index dc7340c9..cf05e388 100644
--- a/test/components/CryptoIcon.spec.js
+++ b/test/components/CryptoIcon.spec.js
@@ -3,6 +3,9 @@ import { shallow } from 'enzyme'
import Isvg from 'react-inlinesvg'
import CryptoIcon from '../../app/components/CryptoIcon'
+import skinnyBitcoinIcon from '../../app/icons/skinny_bitcoin.svg'
+import litecoinIcon from '../../app/icons/litecoin.svg'
+
const defaultProps = {
currency: 'bch',
styles: {}
@@ -21,7 +24,7 @@ describe('component.CryptoIcon', () => {
const props = { ...defaultProps, currency: 'btc' }
const el = shallow()
it('should show btc symbol', () => {
- expect(el.find(Isvg).props().src).toContain('skinny_bitcoin.svg')
+ expect(el.find(Isvg).props().src).toContain(skinnyBitcoinIcon)
})
})
@@ -29,7 +32,7 @@ describe('component.CryptoIcon', () => {
const props = { ...defaultProps, currency: 'ltc' }
const el = shallow()
it('should show ltc symbol', () => {
- expect(el.find(Isvg).props().src).toContain('litecoin.svg')
+ expect(el.find(Isvg).props().src).toContain(litecoinIcon)
})
})
})
diff --git a/test/components/LoadingBolt.spec.js b/test/components/LoadingBolt.spec.js
index e60cd5f4..156fd466 100644
--- a/test/components/LoadingBolt.spec.js
+++ b/test/components/LoadingBolt.spec.js
@@ -2,11 +2,12 @@ import React from 'react'
import { shallow } from 'enzyme'
import Isvg from 'react-inlinesvg'
import LoadingBolt from '../../app/components/LoadingBolt'
+import cloudboltIcon from '../../app/icons/cloudbolt.svg'
describe('component.LoadingBolt', () => {
const el = shallow()
it('should show defaults', () => {
- expect(el.find(Isvg).props().src).toContain('cloudbolt.svg')
+ expect(el.find(Isvg).props().src).toContain(cloudboltIcon)
expect(el.text()).toContain('loading')
})
})
diff --git a/test/reducers/__snapshots__/channels.spec.js.snap b/test/reducers/__snapshots__/channels.spec.js.snap
index aeecccfe..195b780c 100644
--- a/test/reducers/__snapshots__/channels.spec.js.snap
+++ b/test/reducers/__snapshots__/channels.spec.js.snap
@@ -12,6 +12,33 @@ Object {
"channels": Array [],
"channelsLoading": true,
"closingChannel": false,
+ "filter": Object {
+ "key": "ALL_CHANNELS",
+ "name": "All Channels",
+ },
+ "filterPulldown": false,
+ "filters": Array [
+ Object {
+ "key": "ALL_CHANNELS",
+ "name": "All Channels",
+ },
+ Object {
+ "key": "ACTIVE_CHANNELS",
+ "name": "Active Channels",
+ },
+ Object {
+ "key": "OPEN_CHANNELS",
+ "name": "Open Channels",
+ },
+ Object {
+ "key": "OPEN_PENDING_CHANNELS",
+ "name": "Open Pending Channels",
+ },
+ Object {
+ "key": "CLOSING_PENDING_CHANNELS",
+ "name": "Closing Pending Channels",
+ },
+ ],
"openingChannel": false,
"pendingChannels": Object {
"pending_closing_channels": Array [],
@@ -36,6 +63,33 @@ Object {
"channels": Array [],
"channelsLoading": false,
"closingChannel": false,
+ "filter": Object {
+ "key": "ALL_CHANNELS",
+ "name": "All Channels",
+ },
+ "filterPulldown": false,
+ "filters": Array [
+ Object {
+ "key": "ALL_CHANNELS",
+ "name": "All Channels",
+ },
+ Object {
+ "key": "ACTIVE_CHANNELS",
+ "name": "Active Channels",
+ },
+ Object {
+ "key": "OPEN_CHANNELS",
+ "name": "Open Channels",
+ },
+ Object {
+ "key": "OPEN_PENDING_CHANNELS",
+ "name": "Open Pending Channels",
+ },
+ Object {
+ "key": "CLOSING_PENDING_CHANNELS",
+ "name": "Closing Pending Channels",
+ },
+ ],
"openingChannel": true,
"pendingChannels": Object {
"pending_closing_channels": Array [],
@@ -63,6 +117,33 @@ Object {
],
"channelsLoading": false,
"closingChannel": false,
+ "filter": Object {
+ "key": "ALL_CHANNELS",
+ "name": "All Channels",
+ },
+ "filterPulldown": false,
+ "filters": Array [
+ Object {
+ "key": "ALL_CHANNELS",
+ "name": "All Channels",
+ },
+ Object {
+ "key": "ACTIVE_CHANNELS",
+ "name": "Active Channels",
+ },
+ Object {
+ "key": "OPEN_CHANNELS",
+ "name": "Open Channels",
+ },
+ Object {
+ "key": "OPEN_PENDING_CHANNELS",
+ "name": "Open Pending Channels",
+ },
+ Object {
+ "key": "CLOSING_PENDING_CHANNELS",
+ "name": "Closing Pending Channels",
+ },
+ ],
"openingChannel": false,
"pendingChannels": Array [
3,
@@ -85,6 +166,33 @@ Object {
"channels": Array [],
"channelsLoading": false,
"closingChannel": false,
+ "filter": Object {
+ "key": "ALL_CHANNELS",
+ "name": "All Channels",
+ },
+ "filterPulldown": false,
+ "filters": Array [
+ Object {
+ "key": "ALL_CHANNELS",
+ "name": "All Channels",
+ },
+ Object {
+ "key": "ACTIVE_CHANNELS",
+ "name": "Active Channels",
+ },
+ Object {
+ "key": "OPEN_CHANNELS",
+ "name": "Open Channels",
+ },
+ Object {
+ "key": "OPEN_PENDING_CHANNELS",
+ "name": "Open Pending Channels",
+ },
+ Object {
+ "key": "CLOSING_PENDING_CHANNELS",
+ "name": "Closing Pending Channels",
+ },
+ ],
"openingChannel": false,
"pendingChannels": Object {
"pending_closing_channels": Array [],
@@ -109,6 +217,33 @@ Object {
"channels": Array [],
"channelsLoading": false,
"closingChannel": false,
+ "filter": Object {
+ "key": "ALL_CHANNELS",
+ "name": "All Channels",
+ },
+ "filterPulldown": false,
+ "filters": Array [
+ Object {
+ "key": "ALL_CHANNELS",
+ "name": "All Channels",
+ },
+ Object {
+ "key": "ACTIVE_CHANNELS",
+ "name": "Active Channels",
+ },
+ Object {
+ "key": "OPEN_CHANNELS",
+ "name": "Open Channels",
+ },
+ Object {
+ "key": "OPEN_PENDING_CHANNELS",
+ "name": "Open Pending Channels",
+ },
+ Object {
+ "key": "CLOSING_PENDING_CHANNELS",
+ "name": "Closing Pending Channels",
+ },
+ ],
"openingChannel": false,
"pendingChannels": Object {
"pending_closing_channels": Array [],
@@ -133,6 +268,33 @@ Object {
"channels": Array [],
"channelsLoading": false,
"closingChannel": false,
+ "filter": Object {
+ "key": "ALL_CHANNELS",
+ "name": "All Channels",
+ },
+ "filterPulldown": false,
+ "filters": Array [
+ Object {
+ "key": "ALL_CHANNELS",
+ "name": "All Channels",
+ },
+ Object {
+ "key": "ACTIVE_CHANNELS",
+ "name": "Active Channels",
+ },
+ Object {
+ "key": "OPEN_CHANNELS",
+ "name": "Open Channels",
+ },
+ Object {
+ "key": "OPEN_PENDING_CHANNELS",
+ "name": "Open Pending Channels",
+ },
+ Object {
+ "key": "CLOSING_PENDING_CHANNELS",
+ "name": "Closing Pending Channels",
+ },
+ ],
"openingChannel": false,
"pendingChannels": Object {
"pending_closing_channels": Array [],