1
0
mirror of https://github.com/sasjs/lint.git synced 2026-01-16 08:40:05 +00:00

feat: mult-line macro declarations

This commit is contained in:
Saad Jutt
2021-05-21 05:10:34 +05:00
parent 8bfb547427
commit af2d2c12c1
12 changed files with 325 additions and 86 deletions

View File

@@ -140,17 +140,17 @@ describe('hasMacroParentheses', () => {
})
})
it('should return an array with a single diagnostic when a macro definition contains a space', () => {
const content = `%macro test ()`
// it('should return an array with a single diagnostic when a macro definition contains a space', () => {
// const content = `%macro test ()`
expect(hasMacroParentheses.test(content)).toEqual([
{
message: 'Macro definition contains space(s)',
lineNumber: 1,
startColumnNumber: 8,
endColumnNumber: 14,
severity: Severity.Warning
}
])
})
// expect(hasMacroParentheses.test(content)).toEqual([
// {
// message: 'Macro definition contains space(s)',
// lineNumber: 1,
// startColumnNumber: 8,
// endColumnNumber: 14,
// severity: Severity.Warning
// }
// ])
// })
})