1/* 2 * Copyright (C) 2022 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 16import { LitRadioBox } from '../../../src/base-ui/radiobox/LitRadioBox'; 17 18import { LitRadioGroup } from '../../../src/base-ui/radiobox/LitRadioGroup'; 19 20describe('LitRadioBox Test', () => { 21 let litRadioBox = new LitRadioBox(); 22 let litRadioGroup = new LitRadioGroup(); 23 24 litRadioGroup.layout = 'layout'; 25 26 litRadioBox.checked = true; 27 litRadioBox.checked = false; 28 litRadioBox.value = 'value'; 29 litRadioBox.dis = 'dis'; 30 it('LitRadioBoxTest01', () => { 31 expect(litRadioBox.name).toBeNull(); 32 }); 33 34 it('LitRadioBoxTest02', () => { 35 expect(litRadioBox.value).toBe('value'); 36 }); 37 38 it('litRadioGroupTest01', () => { 39 let isReturn = litRadioGroup.value.length == 0; 40 expect(isReturn).toBeTruthy(); 41 }); 42}); 43