Skip to content

Commit

Permalink
test: add more test
Browse files Browse the repository at this point in the history
  • Loading branch information
chenshuai2144 committed Jan 16, 2021
1 parent 2017a46 commit 092648a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/field/__snapshots__/field.test.tsx.snap
Expand Up @@ -2605,6 +2605,8 @@ exports[`Field 🐴 options support dom text 1`] = `

exports[`Field 🐴 options support empty dom 1`] = `null`;

exports[`Field 🐴 options support no text 1`] = `null`;

exports[`Field 🐴 options support one dom 1`] = `
<div
class="ant-space ant-space-horizontal ant-space-align-center ant-pro-field-option"
Expand Down
5 changes: 5 additions & 0 deletions tests/field/field.test.tsx
Expand Up @@ -572,6 +572,11 @@ describe('Field', () => {
expect(html).toMatchSnapshot();
});

it('🐴 options support no text', async () => {
const html = render(<Field text="qixian" valueType="option" mode="read" />);
expect(html).toMatchSnapshot();
});

it('🐴 options support dom list', () => {
const html = render(
<Field
Expand Down

0 comments on commit 092648a

Please sign in to comment.