@@ -99,7 +99,7 @@ describe('execute', () => {
9999 await createDataset . execute ( testNewDataset )
100100 throw new Error ( 'Use case should throw an error' )
101101 } catch ( error ) {
102- fieldValidationError = error
102+ fieldValidationError = error as FieldValidationError
103103 } finally {
104104 expect ( fieldValidationError ) . toBeInstanceOf ( FieldValidationError )
105105 expect ( fieldValidationError ?. citationBlockName ) . toEqual ( 'citation' )
@@ -149,7 +149,7 @@ describe('execute', () => {
149149 await createDataset . execute ( testNewDataset )
150150 throw new Error ( 'Use case should throw an error' )
151151 } catch ( error ) {
152- fieldValidationError = error
152+ fieldValidationError = error as FieldValidationError
153153 } finally {
154154 expect ( fieldValidationError ) . toBeInstanceOf ( FieldValidationError )
155155 expect ( fieldValidationError ?. citationBlockName ) . toEqual ( 'citation' )
@@ -201,7 +201,7 @@ describe('execute', () => {
201201 await createDataset . execute ( testNewDataset )
202202 throw new Error ( 'Use case should throw an error' )
203203 } catch ( error ) {
204- fieldValidationError = error
204+ fieldValidationError = error as FieldValidationError
205205 } finally {
206206 expect ( fieldValidationError ) . toBeInstanceOf ( FieldValidationError )
207207 expect ( fieldValidationError ?. citationBlockName ) . toEqual ( 'citation' )
0 commit comments