@@ -27,67 +27,67 @@ describe('src/utils/AlertUtils', () => {
27
27
it ( 'Add notifications calls the store with the notification' , ( ) => {
28
28
addNotification ( NotificationType . INFO , 'foo' , 'bar' ) ;
29
29
expect ( dispatch ) . toHaveBeenCalledWith ( expect . objectContaining ( {
30
- payload : expect . objectContaining ( {
31
- variant : 'info' ,
32
- title : 'foo' ,
33
- description : 'bar' ,
34
- } )
30
+ payload : expect . objectContaining ( {
31
+ variant : 'info' ,
32
+ title : 'foo' ,
33
+ description : 'bar'
34
+ } )
35
35
} ) ) ;
36
36
} ) ;
37
37
38
38
it ( 'Add notifications accepts dismissable' , ( ) => {
39
39
addNotification ( NotificationType . INFO , 'foo' , 'bar' , true ) ;
40
40
expect ( dispatch ) . toHaveBeenCalledWith ( expect . objectContaining ( {
41
- payload : expect . objectContaining ( {
42
- variant : 'info' ,
43
- title : 'foo' ,
44
- description : 'bar' ,
45
- dismissable : true ,
46
- } )
41
+ payload : expect . objectContaining ( {
42
+ variant : 'info' ,
43
+ title : 'foo' ,
44
+ description : 'bar' ,
45
+ dismissable : true
46
+ } )
47
47
} ) ) ;
48
48
} ) ;
49
49
50
50
it ( 'addSuccessNotification creates a notification action with "success"' , ( ) => {
51
51
addSuccessNotification ( 'foo' , 'bar' ) ;
52
52
expect ( dispatch ) . toHaveBeenCalledWith ( expect . objectContaining ( {
53
- payload : expect . objectContaining ( {
54
- variant : 'success' ,
55
- title : 'foo' ,
56
- description : 'bar' ,
57
- } )
53
+ payload : expect . objectContaining ( {
54
+ variant : 'success' ,
55
+ title : 'foo' ,
56
+ description : 'bar'
57
+ } )
58
58
} ) ) ;
59
59
} ) ;
60
60
61
61
it ( 'addSuccessNotification creates a notification action with "info"' , ( ) => {
62
62
addInfoNotification ( 'foo' , 'bar' ) ;
63
63
expect ( dispatch ) . toHaveBeenCalledWith ( expect . objectContaining ( {
64
- payload : expect . objectContaining ( {
65
- variant : 'info' ,
66
- title : 'foo' ,
67
- description : 'bar' ,
68
- } )
64
+ payload : expect . objectContaining ( {
65
+ variant : 'info' ,
66
+ title : 'foo' ,
67
+ description : 'bar'
68
+ } )
69
69
} ) ) ;
70
70
} ) ;
71
71
72
72
it ( 'addSuccessNotification creates a notification action with "warning"' , ( ) => {
73
73
addWarningNotification ( 'foo' , 'bar' ) ;
74
74
expect ( dispatch ) . toHaveBeenCalledWith ( expect . objectContaining ( {
75
- payload : expect . objectContaining ( {
76
- variant : 'warning' ,
77
- title : 'foo' ,
78
- description : 'bar' ,
79
- } )
75
+ payload : expect . objectContaining ( {
76
+ variant : 'warning' ,
77
+ title : 'foo' ,
78
+ description : 'bar'
79
+ } )
80
80
} ) ) ;
81
81
} ) ;
82
82
83
83
it ( 'addSuccessNotification creates a notification action with "danger"' , ( ) => {
84
84
addDangerNotification ( 'foo' , 'bar' ) ;
85
85
expect ( dispatch ) . toHaveBeenCalledWith ( expect . objectContaining ( {
86
- payload : expect . objectContaining ( {
87
- variant : 'danger' ,
88
- title : 'foo' ,
89
- description : 'bar' ,
90
- } )
86
+ payload : expect . objectContaining ( {
87
+ variant : 'danger' ,
88
+ title : 'foo' ,
89
+ description : 'bar'
90
+ } )
91
91
} ) ) ;
92
92
} ) ;
93
93
0 commit comments