@@ -136,20 +136,8 @@ describe('ConfirmFooter', () => {
136
136
// TODO: Replace `any` with type
137
137
// eslint-disable-next-line @typescript-eslint/no-explicit-any
138
138
. mockImplementation ( ( ) => ( { } as any ) ) ;
139
- const updateCustomNonceSpy = jest
140
- . spyOn ( Actions , 'updateCustomNonce' )
141
- // TODO: Replace `any` with type
142
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
143
- . mockImplementation ( ( ) => ( { } as any ) ) ;
144
- const setNextNonceSpy = jest
145
- . spyOn ( Actions , 'setNextNonce' )
146
- // TODO: Replace `any` with type
147
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
148
- . mockImplementation ( ( ) => ( { } as any ) ) ;
149
139
fireEvent . click ( cancelButton ) ;
150
140
expect ( rejectSpy ) . toHaveBeenCalled ( ) ;
151
- expect ( updateCustomNonceSpy ) . toHaveBeenCalledWith ( '' ) ;
152
- expect ( setNextNonceSpy ) . toHaveBeenCalledWith ( '' ) ;
153
141
} ) ;
154
142
155
143
it ( 'invoke required actions when submit button is clicked' , ( ) => {
@@ -160,20 +148,8 @@ describe('ConfirmFooter', () => {
160
148
// TODO: Replace `any` with type
161
149
// eslint-disable-next-line @typescript-eslint/no-explicit-any
162
150
. mockImplementation ( ( ) => ( { } as any ) ) ;
163
- const updateCustomNonceSpy = jest
164
- . spyOn ( Actions , 'updateCustomNonce' )
165
- // TODO: Replace `any` with type
166
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
167
- . mockImplementation ( ( ) => ( { } as any ) ) ;
168
- const setNextNonceSpy = jest
169
- . spyOn ( Actions , 'setNextNonce' )
170
- // TODO: Replace `any` with type
171
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
172
- . mockImplementation ( ( ) => ( { } as any ) ) ;
173
151
fireEvent . click ( submitButton ) ;
174
152
expect ( resolveSpy ) . toHaveBeenCalled ( ) ;
175
- expect ( updateCustomNonceSpy ) . toHaveBeenCalledWith ( '' ) ;
176
- expect ( setNextNonceSpy ) . toHaveBeenCalledWith ( '' ) ;
177
153
} ) ;
178
154
179
155
it ( 'displays a danger "Confirm" button there are danger alerts' , async ( ) => {
0 commit comments