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 16// @ts-ignore 17import { LitTreeNode } from '../../../dist/base-ui/tree/LitTreeNode.js'; 18 19describe('LitTreeNode Test', () => { 20 let litTabPane = new LitTreeNode(); 21 litTabPane.data = 'true'; 22 litTabPane.checkable = 'true'; 23 litTabPane.multiple = 'multiple'; 24 litTabPane.iconName = 'iconName'; 25 litTabPane.topDepth = 'topDepth'; 26 litTabPane.arrow = 'arrow'; 27 litTabPane.open = 'open'; 28 litTabPane.selected = 'selected'; 29 litTabPane.checked = 'checked'; 30 it('LitTreeNode01', () => { 31 expect(litTabPane.data).toBe('true'); 32 }); 33 it('LitTreeNode02', () => { 34 expect(litTabPane.checkable).toBe('true'); 35 }); 36 it('LitTreeNode03', () => { 37 expect(litTabPane.multiple).toBeTruthy(); 38 }); 39 it('LitTreeNode04', () => { 40 expect(litTabPane.iconName).toBe('iconName'); 41 }); 42 it('LitTreeNode05', () => { 43 expect(litTabPane.topDepth).toBeTruthy(); 44 }); 45 it('LitTreeNode06', () => { 46 expect(litTabPane.arrow).toBeTruthy(); 47 }); 48 it('LitTreeNode07', () => { 49 expect(litTabPane.selected).toBeTruthy(); 50 }); 51 it('LitTreeNode08', () => { 52 expect(litTabPane.checked).toBeTruthy(); 53 }); 54})