diff options
| author | Wes Bos <wesbos@gmail.com> | 2018-05-02 14:59:28 -0400 |
|---|---|---|
| committer | Wes Bos <wesbos@gmail.com> | 2018-05-02 14:59:28 -0400 |
| commit | b6b0ee9c2ef43f4eef4df403897bcd8fd9ad2957 (patch) | |
| tree | 6659fc57d71b84964f96d597c0559ad4f1e0f084 /frontend/__tests__/EditUser.test.js | |
| parent | 6a83ac97ba191e1169aca4a662825bc52624cf12 (diff) | |
move utils to lib
Diffstat (limited to 'frontend/__tests__/EditUser.test.js')
| -rw-r--r-- | frontend/__tests__/EditUser.test.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/frontend/__tests__/EditUser.test.js b/frontend/__tests__/EditUser.test.js index 7734a4a..2ec0bee 100644 --- a/frontend/__tests__/EditUser.test.js +++ b/frontend/__tests__/EditUser.test.js @@ -2,14 +2,14 @@ import React from 'react'; import { shallow } from 'enzyme'; import toJSON from 'enzyme-to-json'; import EditUser from '../components/EditUser'; -import { mountWithApollo } from './testUtils'; +import { mountWithApollo } from '../lib/testUtils'; import wait from 'waait'; const currentUser = { me: { name: 'Wes Bos', }, - refetch() {}, + refetch() { }, }; describe('<EditUser/>', () => { @@ -43,7 +43,7 @@ describe('<EditUser/>', () => { mutation.client.mutate = jest.fn(); const nameInput = wrapper.find('[name="name"]'); nameInput.simulate('change', { target: { name: 'name', value: 'Scott' } }); - wrapper.find('form').simulate('submit', { preventDefault() {} }); + wrapper.find('form').simulate('submit', { preventDefault() { } }); expect(mutation.client.mutate).toHaveBeenCalledWithVariables({ name: 'Scott' }); }); |
