mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2025-04-19 08:06:40 +02:00
29 lines
696 B
JavaScript
29 lines
696 B
JavaScript
/*
|
|
* Copyright (C) 2019 CZ.NIC z.s.p.o. (http://www.nic.cz/)
|
|
*
|
|
* This is free software, licensed under the GNU General Public License v3.
|
|
* See /LICENSE for more information.
|
|
*/
|
|
|
|
import React from 'react';
|
|
|
|
import {render} from 'customTestRender';
|
|
|
|
import NumberInput from '../components/NumberInput';
|
|
|
|
|
|
describe('<NumberInput/>', () => {
|
|
it('Render number input', () => {
|
|
const {container} = render(
|
|
<NumberInput
|
|
label="Test label"
|
|
helpText="Some help text"
|
|
value={1123}
|
|
onChange={() => {
|
|
}}
|
|
/>
|
|
);
|
|
expect(container.firstChild).toMatchSnapshot();
|
|
});
|
|
});
|