Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(react): update number input tests #11804

Merged
Merged
103 changes: 103 additions & 0 deletions packages/react/__tests__/__snapshots__/PublicAPI-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4874,6 +4874,109 @@ Map {
},
"NumberInput" => Object {
"$$typeof": Symbol(react.forward_ref),
"propTypes": Object {
"allowEmpty": Object {
"type": "bool",
},
"className": Object {
"type": "string",
},
"defaultValue": Object {
"args": Array [
Array [
Object {
"type": "number",
},
Object {
"type": "string",
},
],
],
"type": "oneOfType",
},
"disabled": Object {
"type": "bool",
},
"helperText": Object {
"type": "node",
},
"hideLabel": Object {
"type": "bool",
},
"hideSteppers": Object {
"type": "bool",
},
"iconDescription": Object {
"type": "string",
},
"id": Object {
"isRequired": true,
"type": "string",
},
"invalid": Object {
"type": "bool",
},
"invalidText": Object {
"type": "node",
},
"label": Object {
"type": "node",
},
"light": [Function],
"max": Object {
"type": "number",
},
"min": Object {
"type": "number",
},
"onChange": Object {
"type": "func",
},
"onClick": Object {
"type": "func",
},
"onKeyUp": Object {
"type": "func",
},
"readOnly": Object {
"type": "bool",
},
"size": Object {
"args": Array [
Array [
"sm",
"md",
"lg",
],
],
"type": "oneOf",
},
"step": Object {
"type": "number",
},
"translateWithId": Object {
"type": "func",
},
"value": Object {
"args": Array [
Array [
Object {
"type": "number",
},
Object {
"type": "string",
},
],
],
"type": "oneOfType",
},
"warn": Object {
"type": "bool",
},
"warnText": Object {
"type": "node",
},
},
"render": [Function],
},
"NumberInputSkeleton" => Object {
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Form/Form-story.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import Checkbox from '../Checkbox';
import Form from '../Form';
import FormGroup from '../FormGroup';
import FileUploader from '../FileUploader';
import NumberInput from '../NumberInput';
import { NumberInput } from '../NumberInput';
import RadioButton from '../RadioButton';
import RadioButtonGroup from '../RadioButtonGroup';
import Button from '../Button';
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/Form/next/Form.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import Checkbox from '../../Checkbox';
import Form from '../';
import FormGroup from '../../FormGroup';
import FileUploader from '../../FileUploader';
import NumberInput from '../../NumberInput';
import { NumberInput } from '../../NumberInput';
import RadioButton from '../../RadioButton';
import RadioButtonGroup from '../../RadioButtonGroup';
import Button from '../../Button';
Expand Down
111 changes: 0 additions & 111 deletions packages/react/src/components/NumberInput/NumberInput-story.js

This file was deleted.

Loading