Select targets tests (#1307)

* Adds tests for the TargetDetails component

* Adds tests for Select Targets Menu

* Rename target_stub to target_mock

* Adds tests for the SelectTargetsDropdown & minor refactor
This commit is contained in:
Mike Stone
2017-03-03 10:05:03 -05:00
committed by GitHub
parent 71a384f34a
commit 7a7fb9eac9
9 changed files with 431 additions and 50 deletions
@@ -4,7 +4,7 @@ import { mount } from 'enzyme';
import { noop } from 'lodash';
import { fillInFormInput } from 'test/helpers';
import targetStub from 'test/target_stub';
import targetMock from 'test/target_mock';
import QueryForm from './index';
const query = {
@@ -16,7 +16,7 @@ const query = {
const queryText = 'SELECT * FROM users';
describe('QueryForm - component', () => {
beforeEach(targetStub);
beforeEach(targetMock);
afterEach(restoreSpies);
it('renders the base error', () => {