From dbecab3db963d71700ed336f9d7d16d39ea50e3a Mon Sep 17 00:00:00 2001 From: Jonathan Zobro Date: Mon, 2 Oct 2017 23:49:23 +0700 Subject: [PATCH] (test)Nav Component --- test/components/Nav.spec.js | 51 +++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 test/components/Nav.spec.js 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(