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