From 88ef4bd2df970cb6ea89123ffdd7fcb21dbc0f15 Mon Sep 17 00:00:00 2001 From: Wes Bos Date: Thu, 19 Apr 2018 10:09:51 -0400 Subject: xxxxxx --- frontend/__tests__/Order.test.js | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 frontend/__tests__/Order.test.js (limited to 'frontend/__tests__/Order.test.js') diff --git a/frontend/__tests__/Order.test.js b/frontend/__tests__/Order.test.js new file mode 100644 index 0000000..6bcf0b9 --- /dev/null +++ b/frontend/__tests__/Order.test.js @@ -0,0 +1,16 @@ +import React from 'react'; +import { mount } from 'enzyme'; +import wait from 'waait'; +import toJSON from 'enzyme-to-json'; +import Order from '../components/Order'; +import mountOptions from './mockMang'; + +describe('', () => { + it('Renders with Proper Data', async () => { + const wrapper = mount(, mountOptions); + await wait(); + wrapper.update(); + const order = wrapper.find('[data-test="order"]'); + expect(toJSON(order)).toMatchSnapshot(); + }); +}); -- cgit v1.3