Skip to content

Commit

Permalink
chore: add test case
Browse files Browse the repository at this point in the history
  • Loading branch information
Wxh16144 committed Mar 7, 2024
1 parent db6bbad commit 6ca632f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/__snapshots__/export.test.tsx.snap
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
// Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html

exports[`export > mobile > should work 1`] = `
[
"Modal",
"Mask",
"Popup",
"Dialog",
]
`;

exports[`export > should work 1`] = `
[
"useBoolean",
Expand Down
8 changes: 8 additions & 0 deletions tests/export.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,12 @@ describe('export', () => {
]
`);
});

describe('mobile', () => {
it('should work', async () => {
const all = await import('easy-antd-modal/mobile');

expect(Object.keys(all)).toMatchSnapshot();
});
});
});

0 comments on commit 6ca632f

Please sign in to comment.