File tree Expand file tree Collapse file tree 4 files changed +49
-53
lines changed Expand file tree Collapse file tree 4 files changed +49
-53
lines changed Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import renderer from 'react-test-renderer' ;
3
+ import { TriangleArrow } from './TriangleArrow' ;
4
+
5
+ it ( 'renders <TriangleArrow /> test case' , ( ) => {
6
+ const component = renderer . create ( < TriangleArrow /> ) ;
7
+ let tree = component . toJSON ( ) ;
8
+ expect ( tree ) . toHaveProperty ( 'type' ) ;
9
+ expect ( tree ) . toHaveProperty ( 'props' ) ;
10
+ expect ( tree ) . toHaveProperty ( 'children' ) ;
11
+ expect ( tree ) . toHaveProperty ( 'type' , 'svg' ) ;
12
+ expect ( tree ) . toHaveProperty ( 'props' , {
13
+ viewBox : '0 0 24 24' ,
14
+ fill : 'var(--w-rjv-arrow-color, currentColor)' ,
15
+ style : {
16
+ cursor : 'pointer' ,
17
+ height : '1em' ,
18
+ width : '1em' ,
19
+ display : 'flex' ,
20
+ userSelect : 'none' ,
21
+ } ,
22
+ } ) ;
23
+ } ) ;
Original file line number Diff line number Diff line change
1
+ import React from 'react' ;
2
+ import renderer from 'react-test-renderer' ;
3
+ import { TriangleSolidArrow } from './TriangleSolidArrow' ;
4
+
5
+ it ( 'renders <TriangleSolidArrow /> test case' , ( ) => {
6
+ const component = renderer . create ( < TriangleSolidArrow /> ) ;
7
+ let tree = component . toJSON ( ) ;
8
+ expect ( tree ) . toHaveProperty ( 'type' ) ;
9
+ expect ( tree ) . toHaveProperty ( 'props' ) ;
10
+ expect ( tree ) . toHaveProperty ( 'children' ) ;
11
+ expect ( tree ) . toHaveProperty ( 'type' , 'svg' ) ;
12
+ expect ( tree ) . toHaveProperty ( 'props' , {
13
+ viewBox : '0 0 30 30' ,
14
+ fill : 'var(--w-rjv-arrow-color, currentColor)' ,
15
+ height : '1em' ,
16
+ width : '1em' ,
17
+ style : {
18
+ cursor : 'pointer' ,
19
+ height : '1em' ,
20
+ width : '1em' ,
21
+ display : 'flex' ,
22
+ userSelect : 'none' ,
23
+ } ,
24
+ } ) ;
25
+ } ) ;
Original file line number Diff line number Diff line change 1
- import { useStore } from '../store' ;
2
- import { useSectionStore , type SectionElementProps } from '../store/Section' ;
3
- import { type TagType } from '../store/Types' ;
1
+ import { useSectionStore } from '../store/Section' ;
4
2
5
3
export interface CountInfoProps < T extends object > {
6
4
value ?: T ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments