Skip to content

Commit 5868f31

Browse files
committed
unit: more tests for Form
1 parent c66a961 commit 5868f31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/__tests__/Form.spec.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import React from 'react';
33
import { mount } from 'enzyme';
44

55
// Internal
6-
import Form from '../Form';
6+
import Form from '..';
77

88
describe('Form', () => {
99
it('Mount the form with basic fields', () => {
@@ -40,14 +40,14 @@ describe('Form', () => {
4040
const path = 'name';
4141
const onChange = jest.fn(() => 'onChangeFunc');
4242
const schema = {
43-
'type': 'string',
43+
'type': 'integer',
4444
'title': 'First Name',
4545
};
4646

4747
const uiSchema = {
4848
};
4949

50-
const data = 1;
50+
const data = 'hello';
5151

5252
// act
5353
const wrapper = mount(

0 commit comments

Comments
 (0)