Skip to content

Commit d1b405a

Browse files
test(layout): optimized the unit tests for the layout component (#749)
* test(divider): merged test cases for the divider component and optimized Merged the original two test files into one, removed duplicates, and optimized the format. fix #697 * test(divider): standardize divider test cases standardize Divider test cases fix #697 * test(divider): removed some unnecessary snapshots - Align, layout, dashed assertions: no snapshot storage (verify CSS classes). fix #697 * test(layout): optimized the unit tests for the layout component - Merged multiple test files and optimized the test cases fix #697
1 parent b53321a commit d1b405a

File tree

6 files changed

+185
-401
lines changed

6 files changed

+185
-401
lines changed

site/test-coverage.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ module.exports = {
2929
imageViewer: { statements: '8.47%', branches: '2.87%', functions: '0%', lines: '8.84%' },
3030
indexes: { statements: '95.65%', branches: '69.81%', functions: '100%', lines: '96.94%' },
3131
input: { statements: '3.57%', branches: '0%', functions: '0%', lines: '3.7%' },
32-
layout: { statements: '93.93%', branches: '60%', functions: '100%', lines: '93.93%' },
32+
layout: { statements: '100%', branches: '100%', functions: '100%', lines: '100%' },
3333
link: { statements: '100%', branches: '100%', functions: '100%', lines: '100%' },
3434
list: { statements: '8%', branches: '0%', functions: '0%', lines: '8.69%' },
3535
loading: { statements: '98.43%', branches: '96.07%', functions: '100%', lines: '98.3%' },

src/layout/__tests__/__snapshots__/demo.test.jsx.snap

Lines changed: 0 additions & 320 deletions
This file was deleted.

src/layout/__tests__/__snapshots__/demo.test.tsx.snap

Lines changed: 0 additions & 7 deletions
This file was deleted.

src/layout/__tests__/demo.test.tsx

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)