File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -117,8 +117,8 @@ describe('git', () => {
117117
118118 it ( 'should throw if Intl is unavailable' , ( ) => {
119119 const backup = globalThis . Intl . DateTimeFormat ;
120- // @ts -expect-error: We're testing the error case
121- globalThis . Intl . DateTimeFormat = undefined ;
120+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
121+ ( globalThis as any ) . Intl . DateTimeFormat = undefined ;
122122
123123 expect ( ( ) => {
124124 faker . git . commitEntry ( ) ;
@@ -157,8 +157,8 @@ describe('git', () => {
157157
158158 it ( 'should throw if Intl is unavailable' , ( ) => {
159159 const backup = globalThis . Intl . DateTimeFormat ;
160- // @ts -expect-error: We're testing the error case
161- globalThis . Intl . DateTimeFormat = undefined ;
160+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
161+ ( globalThis as any ) . Intl . DateTimeFormat = undefined ;
162162
163163 expect ( ( ) => {
164164 faker . git . commitDate ( ) ;
You can’t perform that action at this time.
0 commit comments