二货爱吃白萝卜
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
1 additions and
16 deletions
-
package.json
-
tests/shared/demoTest.tsx
|
|
@ -280,6 +280,7 @@ |
|
|
|
"stylelint-config-standard": "^29.0.0", |
|
|
|
"stylelint-declaration-block-no-ignored-properties": "^2.1.0", |
|
|
|
"sylvanas": "^0.6.1", |
|
|
|
"terser": "^5.16.1", |
|
|
|
"ts-node": "^10.8.2", |
|
|
|
"typedoc": "^0.23.21", |
|
|
|
"typescript": "~4.9.3", |
|
|
|
|
|
@ -117,22 +117,6 @@ function baseText(doInject: boolean, component: string, options: Options = {}) { |
|
|
|
html, |
|
|
|
}).toMatchSnapshot(); |
|
|
|
|
|
|
|
// if (typeof document === 'undefined') {
|
|
|
|
// // Server
|
|
|
|
// expect(() => {
|
|
|
|
// renderToString(Demo);
|
|
|
|
// }).not.toThrow();
|
|
|
|
// } else {
|
|
|
|
// // Client
|
|
|
|
// const { container } = render(Demo);
|
|
|
|
// ariaConvert(container);
|
|
|
|
|
|
|
|
// const { children } = container;
|
|
|
|
// const child = children.length > 1 ? Array.from(children) : children[0];
|
|
|
|
|
|
|
|
// expect(child).toMatchSnapshot();
|
|
|
|
// }
|
|
|
|
|
|
|
|
errSpy.mockRestore(); |
|
|
|
}, |
|
|
|
); |
|
|
|