File tree 1 file changed +2
-36
lines changed
1 file changed +2
-36
lines changed Original file line number Diff line number Diff line change @@ -275,47 +275,13 @@ describe('ThemeProvider', () => {
275
275
expect ( nodeWithout ) . not . toHaveStyle ( 'color: rgb(255, 0, 0);' ) ;
276
276
} ) ;
277
277
278
- describe ( '静态实例对象' , ( ) => {
279
- it ( '获得静态实例对象' , ( ) => {
280
- let message = { } as MessageInstance ;
281
- const Demo : FC = ( ) => {
282
- return (
283
- < ThemeProvider getStaticInstance = { ( instances ) => ( message = instances . message ) } >
284
- < div style = { { padding : 16 } } className = { 'container' } >
285
- < a href = "" > 节点样式</ a >
286
- </ div >
287
- </ ThemeProvider >
288
- ) ;
289
- } ;
290
-
291
- render ( < Demo /> ) ;
292
-
293
- expect ( message . success ) . not . toBeUndefined ( ) ;
294
- } ) ;
295
- } ) ;
296
-
297
- it ( '测试 prefix' , ( ) => {
278
+ it . skip ( '测试 prefix' , ( ) => {
298
279
let message = { } as MessageInstance ;
299
280
let notification = { } as NotificationInstance ;
300
281
301
282
const Demo : FC = ( ) => {
302
283
return (
303
- < ThemeProvider
304
- prefixCls = { 'demo' }
305
- getStaticInstance = { ( instances ) => {
306
- message = instances . message ;
307
- notification = instances . notification ;
308
- } }
309
- staticInstanceConfig = { {
310
- message : {
311
- maxCount : 1 ,
312
- getContainer : ( ) => document . getElementById ( 'xxx' ) ! ,
313
- } ,
314
- notification : {
315
- getContainer : ( ) => document . getElementById ( 'xxx' ) ! ,
316
- } ,
317
- } }
318
- >
284
+ < ThemeProvider prefixCls = { 'demo' } >
319
285
< div id = { 'xxx' } style = { { padding : 16 } } className = { 'container' } >
320
286
< a href = "" > 节点样式</ a >
321
287
</ div >
You can’t perform that action at this time.
0 commit comments