import React from 'react'; import { create } from 'react-test-renderer'; import { IOption, Select } from '..'; import { IconVideo } from '../../icons/video'; import { IconSearch } from '../../icons/search'; import { IconDownload } from '../../icons/download'; import { IconCalendar } from '../../icons/calendar'; import { IconBox } from '../../icons/box'; import { IconInfo } from '../../icons/info'; const OPTIONS: Array = [{ label: 'Мали', value: '1' }, { label : 'Индонезия', value : '2', elBefore: }, { label: 'Болгария', value: '3', elAfter: }, { label : 'Замбия', value : '4', elBefore: , elAfter : }, { label : 'Мексика', value : '5', elBefore: () => , elAfter : () => }, { label : 'Кыргызстан', value : '6', disabled: true }, { label: 'Кения', value: '7' }, { label: 'Фарерские Острова (не признана)', value: '8' }, { label: 'Филиппины', value: '9' }, { label: 'Армения', value: '10' }]; test('Default', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('Error', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('Default value', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('Label', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('Default async menu open', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('Disabled async', () => { const tree = create( ); expect(tree.toJSON()).toMatchSnapshot(); }); test('Label async', () => { const tree = create(