diff --git a/test/components/Nav.spec.js b/test/components/Nav.spec.js new file mode 100644 index 00000000..c55a1d94 --- /dev/null +++ b/test/components/Nav.spec.js @@ -0,0 +1,51 @@ +import React from 'react' +import { shallow } from 'enzyme' +import ReactSVG from 'react-svg' +import { NavLink } from 'react-router-dom' +import { MdAccountBalanceWallet } from 'react-icons/lib/md' +import { FaClockO, FaDollar } from 'react-icons/lib/fa' +import Nav from 'components/Nav' + +const defaultProps = { + ticker: { + currency: 'usd', + crypto: 'btc' + }, + balance: {}, + setCurrency: () => {}, + currentTicker: {}, + openPayForm: () => {}, + openRequestForm: () => {} +} + +describe('default elements', () => { + const props = { ...defaultProps } + const el = shallow(