Skip to content

Commit

Permalink
test(notification & table): 添加todo (#1138)
Browse files Browse the repository at this point in the history
* feat: add coverage folder to .gitignore

* test(notification & table): 添加测试todo项
  • Loading branch information
TerminatorSd authored Aug 9, 2022
1 parent 6f82416 commit 2f91e75
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,4 @@ packages/devui-vue/devui/theme/theme.scss
packages/devui-vue/docs/.vitepress/config/sidebar.ts
packages/devui-vue/docs/.vitepress/config/enSidebar.ts
.pnpm-debug.log
coverage
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,6 @@ describe('d-notification', () => {
notification = null;
});
});

it.todo('manual click close work well');
});
7 changes: 6 additions & 1 deletion packages/devui-vue/devui/table/__tests__/table.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ describe('d-table', () => {
expect(handleSortChange).toBeCalled();
});

it.todo('filter multiple work well');

it('filter', async () => {
const handleSingleChange = jest.fn();
const wrapper = mount({
Expand Down Expand Up @@ -643,7 +645,6 @@ describe('d-table', () => {
const wrapper = mount({
setup() {
const handleLoadMore = () => {

// TODO: add exception to test emit event(Jest don't have IntersectionObserver)
// The 'intersection-observer' polyfill don't work in Jest env? It's just prevent error report in DTable.
data.push({
Expand Down Expand Up @@ -674,4 +675,8 @@ describe('d-table', () => {
expect(lazyEle.exists()).toBeTruthy();
wrapper.unmount();
});

it.todo('fix header work well');

it.todo('drag column work well');
});

0 comments on commit 2f91e75

Please sign in to comment.