File tree 1 file changed +18
-18
lines changed
app/javascript/components/pages/admin/forms-list/components/reorder-actions
1 file changed +18
-18
lines changed Original file line number Diff line number Diff line change @@ -8,35 +8,35 @@ import ReorderActions from "./component";
8
8
9
9
describe ( "<FormsList />/components/<ReorderActions />" , ( ) => {
10
10
11
- const initialState = fromJS ( {
12
- records : {
13
- admin : {
14
- forms : {
15
- reorderedForms : {
16
- loading : false ,
17
- errors : [ ] ,
18
- pending : [ ]
19
- }
11
+ const initialState = fromJS ( {
12
+ records : {
13
+ admin : {
14
+ forms : {
15
+ reorderedForms : {
16
+ loading : false ,
17
+ errors : [ ] ,
18
+ pending : [ ]
20
19
}
21
20
}
22
21
}
23
- } ) ;
22
+ }
23
+ } ) ;
24
24
25
25
it ( "renders <Dialog/>" , ( ) => {
26
26
mountedComponent ( < ReorderActions { ...{
27
- handleCancel : ( ) => { } ,
28
- handleSuccess : ( ) => { } ,
29
- open : true
30
- } } /> , initialState )
27
+ handleCancel : ( ) => { } ,
28
+ handleSuccess : ( ) => { } ,
29
+ open : true
30
+ } } /> , initialState )
31
31
expect ( screen . getByRole ( 'dialog' ) ) . toBeInTheDocument ( ) ;
32
32
} ) ;
33
33
34
34
it ( "renders the dialog buttons" , ( ) => {
35
35
mountedComponent ( < ReorderActions { ...{
36
- handleCancel : ( ) => { } ,
37
- handleSuccess : ( ) => { } ,
38
- open : true
39
- } } /> , initialState )
36
+ handleCancel : ( ) => { } ,
37
+ handleSuccess : ( ) => { } ,
38
+ open : true
39
+ } } /> , initialState )
40
40
expect ( screen . getAllByRole ( 'button' ) ) . toHaveLength ( 2 ) ;
41
41
} ) ;
42
42
} ) ;
You can’t perform that action at this time.
0 commit comments