mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-02 12:09:14 +08:00
test: remove null check (#47759)
`querySelectorAll` always returns an array without the need for null check. Signed-off-by: xiejiahe <xjh22222228@gmail.com>
This commit is contained in:
parent
1c7d133de5
commit
998eaf1849
@ -357,7 +357,7 @@ describe('Descriptions', () => {
|
||||
</Descriptions>,
|
||||
);
|
||||
|
||||
const nestDesc = container.querySelectorAll('.ant-descriptions')?.[1];
|
||||
const nestDesc = container.querySelectorAll('.ant-descriptions')[1];
|
||||
const view = nestDesc.querySelector('.ant-descriptions-view');
|
||||
expect(getComputedStyle(view!).border).toBeFalsy();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user