@@ -221,15 +221,12 @@ describe('templateDisplayCopyAction', () => {
221221 [ 'LETTER' , 'PROOF_AVAILABLE' , false ] ,
222222 ] ) (
223223 'should give the expected result for display of copy action when template has type of %s and status of %s' ,
224- ( type , status , shouldDisplayCopyAction ) => {
225- const templateType = type as TemplateType ;
226- const templateStatus = status as TemplateStatus ;
227-
224+ ( templateType , templateStatus , shouldDisplayCopyAction ) => {
228225 expect (
229226 templateDisplayCopyAction ( {
230227 templateType,
231228 templateStatus,
232- } as TemplateDto )
229+ } )
233230 ) . toBe ( shouldDisplayCopyAction ) ;
234231 }
235232 ) ;
@@ -259,15 +256,12 @@ describe('templateDisplayDeleteAction', () => {
259256 [ 'LETTER' , 'PROOF_AVAILABLE' , true ] ,
260257 ] ) (
261258 'should give the expected result for display of delete action when template has type of %s and status of %s' ,
262- ( type , status , shouldDisplayDeleteAction ) => {
263- const templateType = type as TemplateType ;
264- const templateStatus = status as TemplateStatus ;
265-
259+ ( templateType , templateStatus , shouldDisplayDeleteAction ) => {
266260 expect (
267261 templateDisplayDeleteAction ( {
268262 templateType,
269263 templateStatus,
270- } as TemplateDto )
264+ } )
271265 ) . toBe ( shouldDisplayDeleteAction ) ;
272266 }
273267 ) ;
0 commit comments