mirror of
https://github.com/Nezumi-2711/react-training.git
synced 2026-09-22 13:38:51 +00:00
Fix test case
This commit is contained in:
@@ -4,9 +4,6 @@ import renderer from 'react-test-renderer';
|
|||||||
import Form from '.';
|
import Form from '.';
|
||||||
import Input from '@commonStyle/Input';
|
import Input from '@commonStyle/Input';
|
||||||
|
|
||||||
// Styled
|
|
||||||
import { FormBtn } from '@page/User/styled';
|
|
||||||
|
|
||||||
describe('Form ', () => {
|
describe('Form ', () => {
|
||||||
const isDisable = true;
|
const isDisable = true;
|
||||||
const errorMessage = 'This is error message';
|
const errorMessage = 'This is error message';
|
||||||
@@ -24,12 +21,12 @@ describe('Form ', () => {
|
|||||||
</Form.Row>
|
</Form.Row>
|
||||||
|
|
||||||
<Form.Action>
|
<Form.Action>
|
||||||
<FormBtn type="submit" name="submit" disabled={isDisable}>
|
<Form.Button type="submit" name="submit" disabled={isDisable}>
|
||||||
Confirm
|
Confirm
|
||||||
</FormBtn>
|
</Form.Button>
|
||||||
<FormBtn type="button" variations="secondary" onClick={handleOnClick}>
|
<Form.Button type="button" variations="secondary" onClick={handleOnClick}>
|
||||||
Close
|
Close
|
||||||
</FormBtn>
|
</Form.Button>
|
||||||
</Form.Action>
|
</Form.Action>
|
||||||
</Form>
|
</Form>
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user