@@ -125,20 +125,8 @@ describe('ConfirmFooter', () => {
125
125
// TODO: Replace `any` with type
126
126
// eslint-disable-next-line @typescript-eslint/no-explicit-any
127
127
. mockImplementation ( ( ) => ( { } as any ) ) ;
128
- const updateCustomNonceSpy = jest
129
- . spyOn ( Actions , 'updateCustomNonce' )
130
- // TODO: Replace `any` with type
131
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
132
- . mockImplementation ( ( ) => ( { } as any ) ) ;
133
- const setNextNonceSpy = jest
134
- . spyOn ( Actions , 'setNextNonce' )
135
- // TODO: Replace `any` with type
136
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
137
- . mockImplementation ( ( ) => ( { } as any ) ) ;
138
128
fireEvent . click ( cancelButton ) ;
139
129
expect ( rejectSpy ) . toHaveBeenCalled ( ) ;
140
- expect ( updateCustomNonceSpy ) . toHaveBeenCalledWith ( '' ) ;
141
- expect ( setNextNonceSpy ) . toHaveBeenCalledWith ( '' ) ;
142
130
} ) ;
143
131
144
132
it ( 'invoke required actions when submit button is clicked' , ( ) => {
@@ -149,20 +137,8 @@ describe('ConfirmFooter', () => {
149
137
// TODO: Replace `any` with type
150
138
// eslint-disable-next-line @typescript-eslint/no-explicit-any
151
139
. mockImplementation ( ( ) => ( { } as any ) ) ;
152
- const updateCustomNonceSpy = jest
153
- . spyOn ( Actions , 'updateCustomNonce' )
154
- // TODO: Replace `any` with type
155
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
156
- . mockImplementation ( ( ) => ( { } as any ) ) ;
157
- const setNextNonceSpy = jest
158
- . spyOn ( Actions , 'setNextNonce' )
159
- // TODO: Replace `any` with type
160
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
161
- . mockImplementation ( ( ) => ( { } as any ) ) ;
162
140
fireEvent . click ( submitButton ) ;
163
141
expect ( resolveSpy ) . toHaveBeenCalled ( ) ;
164
- expect ( updateCustomNonceSpy ) . toHaveBeenCalledWith ( '' ) ;
165
- expect ( setNextNonceSpy ) . toHaveBeenCalledWith ( '' ) ;
166
142
} ) ;
167
143
168
144
it ( 'displays a danger "Confirm" button there are danger alerts' , async ( ) => {
0 commit comments