Skip to content

Commit

Permalink
feat: 新增descriptions组件快照用例
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbing4 committed Jun 13, 2024
1 parent 9fbbf6e commit 6546eb0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions components/descriptions/index.spec.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
import BasicDemo from '~/components/descriptions/demos/basic';
import CustomDemo from '~/components/descriptions/demos/custom';
import {mount, unmount} from '../../test/utils';

describe('Descriptions', () => {

afterEach(() => unmount());

it('should render correctly', () => {
const [instance, element] = mount(BasicDemo);
const [instance, element] = mount(CustomDemo);

expect(element.outerHTML).to.matchSnapshot();


});

});

0 comments on commit 6546eb0

Please sign in to comment.