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 { LitIcon } from '../../../dist/base-ui/icon/LitIcon.js'; 18 19describe('testLitIcon Test', () => { 20 it('testLitIcon01', () => { 21 let litIcon = new LitIcon(); 22 expect(litIcon).not.toBeUndefined(); 23 expect(litIcon).not.toBeNull(); 24 }); 25 26 it('testLitIcon02', () => { 27 let litIcon = new LitIcon(); 28 expect(litIcon.path).toBeUndefined(); 29 }); 30 31 it('testLitIcon03', () => { 32 let litIcon = new LitIcon(); 33 litIcon.path = 'ss'; 34 expect(litIcon.path).toBeUndefined(); 35 }); 36 37 it('testLitIcon04', () => { 38 let litIcon = new LitIcon(); 39 expect(litIcon.size).toBe(0); 40 }); 41 42 it('testLitIcon05', () => { 43 let litIcon = new LitIcon(); 44 litIcon.size = 1024; 45 expect(litIcon.size).toBe(1024); 46 }); 47 48 it('testLitIcon06', () => { 49 let litIcon = new LitIcon(); 50 expect(litIcon.name).toBe(''); 51 }); 52 53 it('testLitIcon07', () => { 54 let litIcon = new LitIcon(); 55 litIcon.name = 'sss'; 56 expect(litIcon.name).toBe('sss'); 57 }); 58 59 it('testLitIcon07', () => { 60 let litIcon = new LitIcon(); 61 expect((litIcon.color = '#FFF')).not.toBeUndefined(); 62 }); 63}); 64