diff --git a/src/rules/file/hasDoxygenHeader.spec.ts b/src/rules/file/hasDoxygenHeader.spec.ts index 02d0ca4..e29c59c 100644 --- a/src/rules/file/hasDoxygenHeader.spec.ts +++ b/src/rules/file/hasDoxygenHeader.spec.ts @@ -59,7 +59,7 @@ describe('hasDoxygenHeader - test', () => { it('should return an array with a single diagnostic when the file is undefined', () => { const content = undefined - expect(hasDoxygenHeader.test((content as unknown) as string)).toEqual([ + expect(hasDoxygenHeader.test(content as unknown as string)).toEqual([ { message: 'File missing Doxygen header', lineNumber: 1, diff --git a/src/rules/file/hasMacroNameInMend.spec.ts b/src/rules/file/hasMacroNameInMend.spec.ts index 6daf1bf..5693a2e 100644 --- a/src/rules/file/hasMacroNameInMend.spec.ts +++ b/src/rules/file/hasMacroNameInMend.spec.ts @@ -114,7 +114,7 @@ describe('hasMacroNameInMend - test', () => { it('should return an empty array when the file is undefined', () => { const content = undefined - expect(hasMacroNameInMend.test((content as unknown) as string)).toEqual([]) + expect(hasMacroNameInMend.test(content as unknown as string)).toEqual([]) }) describe('nestedMacros', () => { diff --git a/src/rules/file/hasMacroParentheses.spec.ts b/src/rules/file/hasMacroParentheses.spec.ts index cc2d706..1fa58bc 100644 --- a/src/rules/file/hasMacroParentheses.spec.ts +++ b/src/rules/file/hasMacroParentheses.spec.ts @@ -79,7 +79,7 @@ describe('hasMacroParentheses', () => { it('should return an empty array when the file is undefined', () => { const content = undefined - expect(hasMacroParentheses.test((content as unknown) as string)).toEqual([]) + expect(hasMacroParentheses.test(content as unknown as string)).toEqual([]) }) describe('with extra spaces and comments', () => { diff --git a/src/rules/file/noNestedMacros.spec.ts b/src/rules/file/noNestedMacros.spec.ts index 1daccc4..937a86e 100644 --- a/src/rules/file/noNestedMacros.spec.ts +++ b/src/rules/file/noNestedMacros.spec.ts @@ -72,7 +72,7 @@ describe('noNestedMacros', () => { it('should return an empty array when the file is undefined', () => { const content = undefined - expect(noNestedMacros.test((content as unknown) as string)).toEqual([]) + expect(noNestedMacros.test(content as unknown as string)).toEqual([]) }) it('should use the configured line ending while testing content', () => {