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 */
15import { SpCheckDesBox } from '../../../../src/trace/component/setting/SpCheckDesBox';
16
17describe('SpCheckDesBox Test', () => {
18  let spCheckDesBox = new SpCheckDesBox();
19
20  it('SpCheckDesBoxTest01', function () {
21    expect(spCheckDesBox.value).toBe('');
22  });
23
24  it('SpCheckDesBoxTest02', function () {
25    expect(spCheckDesBox.attributeChangedCallback('checked', '', '')).toBeUndefined();
26  });
27
28  it('SpCheckDesBoxTest03', function () {
29    expect(spCheckDesBox.attributeChangedCallback('value', '', '')).toBeUndefined();
30  });
31
32  it('SpCheckDesBoxTest04', function () {
33    expect(spCheckDesBox.attributeChangedCallback('des', '', '')).toBeUndefined();
34  });
35
36  it('SpCheckDesBoxTest05', function () {
37    spCheckDesBox.checked = false;
38    expect(spCheckDesBox.checked).toBeFalsy();
39  });
40
41  it('SpCheckDesBoxTest07', function () {
42    spCheckDesBox.checked = true;
43    expect(spCheckDesBox.checked).toBeTruthy();
44  });
45
46  it('SpCheckDesBoxTest06 ', function () {
47    expect(spCheckDesBox.connectedCallback()).toBeUndefined();
48  });
49});
50