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:
@@ -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,
|
||||||
|
|||||||
@@ -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', () => {
|
||||||
|
|||||||
@@ -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', () => {
|
||||||
|
|||||||
@@ -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', () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user