diff --git a/.eslintrc.js b/.eslintrc.js index 19efb2da44..62de0063fb 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -27,6 +27,8 @@ const eslintrc = { files: ['*.ts', '*.tsx'], rules: { '@typescript-eslint/no-unused-vars': [2, { args: 'none' }], + 'no-unused-expressions': 'off', + '@typescript-eslint/no-unused-expressions': 2, }, }, ], diff --git a/components/form/__tests__/type.test.tsx b/components/form/__tests__/type.test.tsx index 3f7146b386..fabbf6e5a7 100644 --- a/components/form/__tests__/type.test.tsx +++ b/components/form/__tests__/type.test.tsx @@ -6,11 +6,15 @@ import Input from '../../input'; describe('Form.typescript', () => { it('Form.Item', () => { -
- - - -
; + const form = ( +
+ + + +
+ ); + + expect(form).toBeTruthy(); }); }); diff --git a/components/notification/__tests__/__snapshots__/demo.test.js.snap b/components/notification/__tests__/__snapshots__/demo.test.js.snap index 0d57662094..6008d2bd07 100644 --- a/components/notification/__tests__/__snapshots__/demo.test.js.snap +++ b/components/notification/__tests__/__snapshots__/demo.test.js.snap @@ -44,6 +44,127 @@ exports[`renders ./components/notification/demo/duration.md correctly 1`] = ` `; +exports[`renders ./components/notification/demo/hooks.md correctly 1`] = ` +Array [ + , + , +