1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-04 03:10:06 +00:00

chore(lint): fixed linting

This commit is contained in:
Yury Shkoda
2021-05-20 08:58:25 +03:00
parent 0c9b23c51b
commit fa9e4136bc
4 changed files with 4 additions and 4 deletions

View File

@@ -59,7 +59,7 @@ describe('hasDoxygenHeader - test', () => {
it('should return an array with a single diagnostic when the file is undefined', () => { it('should return an array with a single diagnostic when the file is undefined', () => {
const content = 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', message: 'File missing Doxygen header',
lineNumber: 1, lineNumber: 1,

View File

@@ -114,7 +114,7 @@ describe('hasMacroNameInMend - test', () => {
it('should return an empty array when the file is undefined', () => { it('should return an empty array when the file is undefined', () => {
const content = undefined const content = undefined
expect(hasMacroNameInMend.test((content as unknown) as string)).toEqual([]) expect(hasMacroNameInMend.test(content as unknown as string)).toEqual([])
}) })
describe('nestedMacros', () => { describe('nestedMacros', () => {

View File

@@ -79,7 +79,7 @@ describe('hasMacroParentheses', () => {
it('should return an empty array when the file is undefined', () => { it('should return an empty array when the file is undefined', () => {
const content = 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', () => { describe('with extra spaces and comments', () => {

View File

@@ -72,7 +72,7 @@ describe('noNestedMacros', () => {
it('should return an empty array when the file is undefined', () => { it('should return an empty array when the file is undefined', () => {
const content = 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', () => { it('should use the configured line ending while testing content', () => {