Browse Source

fix(tests): fix test snapshots

renovate/lint-staged-8.x
Jack Mallers 7 years ago
parent
commit
9f7bd987da
  1. 3
      test/components/CryptoIcon.spec.js
  2. 12
      test/reducers/__snapshots__/channels.spec.js.snap

3
test/components/CryptoIcon.spec.js

@ -1,6 +1,5 @@
import React from 'react'
import { shallow } from 'enzyme'
import { FaBitcoin } from 'react-icons/lib/fa'
import Isvg from 'react-inlinesvg'
import CryptoIcon from '../../app/components/CryptoIcon'
@ -22,7 +21,7 @@ describe('component.CryptoIcon', () => {
const props = { ...defaultProps, currency: 'btc' }
const el = shallow(<CryptoIcon {...props} />)
it('should show btc symbol', () => {
expect(el.find(FaBitcoin)).toHaveLength(1)
expect(el.find(Isvg).props().src).toContain('skinny_bitcoin.svg')
})
})

12
test/reducers/__snapshots__/channels.spec.js.snap

@ -19,6 +19,8 @@ Object {
"pending_open_channels": Array [],
"total_limbo_balance": "",
},
"searchQuery": "",
"viewType": 0,
}
`;
@ -41,6 +43,8 @@ Object {
"pending_open_channels": Array [],
"total_limbo_balance": "",
},
"searchQuery": "",
"viewType": 0,
}
`;
@ -64,6 +68,8 @@ Object {
3,
4,
],
"searchQuery": "",
"viewType": 0,
}
`;
@ -86,6 +92,8 @@ Object {
"pending_open_channels": Array [],
"total_limbo_balance": "",
},
"searchQuery": "",
"viewType": 0,
}
`;
@ -108,6 +116,8 @@ Object {
"pending_open_channels": Array [],
"total_limbo_balance": "",
},
"searchQuery": "",
"viewType": 0,
}
`;
@ -130,5 +140,7 @@ Object {
"pending_open_channels": Array [],
"total_limbo_balance": "",
},
"searchQuery": "",
"viewType": 0,
}
`;

Loading…
Cancel
Save