/* * Copyright (C) 2022 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // @ts-ignore import {LitCheckBoxWithText} from "../../../dist/base-ui/checkbox/LitCheckBoxWithText.js"; describe('checkBoxWithText Test', ()=>{ it('checkBoxWithTextTest01', function () { let litCheckBoxWithText = new LitCheckBoxWithText(); expect(litCheckBoxWithText).not.toBeUndefined() expect(litCheckBoxWithText).not.toBeNull() }); it('checkBoxWithTextTest02', function () { let litCheckBoxWithText = new LitCheckBoxWithText(); expect(litCheckBoxWithText.checked).toBeFalsy(); }); it('checkBoxWithTextTest03', function () { let litCheckBoxWithText = new LitCheckBoxWithText(); litCheckBoxWithText.checked = true expect(litCheckBoxWithText.checked).toBeTruthy(); }); it('checkBoxWithTextTest03', function () { let litCheckBoxWithText = new LitCheckBoxWithText(); litCheckBoxWithText.checked = false expect(litCheckBoxWithText.checked).toBeFalsy(); }); it('checkBoxWithTextTest04', function () { let litCheckBoxWithText = new LitCheckBoxWithText(); expect(litCheckBoxWithText.text).toEqual(""); }); it('checkBoxWithTextTest05', function () { let litCheckBoxWithText = new LitCheckBoxWithText(); litCheckBoxWithText.text = "test" expect(litCheckBoxWithText.text).toEqual("test"); }); it('checkBoxWithTextTest05', function () { let litCheckBoxWithText = new LitCheckBoxWithText(); expect(litCheckBoxWithText.lowerlimit).toEqual("0"); }); it('checkBoxWithTextTest05', function () { let litCheckBoxWithText = new LitCheckBoxWithText(); litCheckBoxWithText.lowerlimit = "111" expect(litCheckBoxWithText.lowerlimit).toEqual("111"); }); it('checkBoxWithTextTest05', function () { let litCheckBoxWithText = new LitCheckBoxWithText(); litCheckBoxWithText.uplimit = "111" expect(litCheckBoxWithText.uplimit).toEqual("111"); }); })