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

fix(strictMacroDefinition): updated logic for getting options

This commit is contained in:
Saad Jutt
2021-05-21 19:41:45 +05:00
parent cbfa1f40d1
commit 5701064c07
2 changed files with 39 additions and 20 deletions

View File

@@ -37,6 +37,10 @@ describe('strictMacroDefinition', () => {
const content11 = '`%macro macroName() /* / store source */;'
expect(strictMacroDefinition.test(content11)).toEqual([])
const content12 =
'%macro macroName()/ /* some comment */ store des="some description";'
expect(strictMacroDefinition.test(content12)).toEqual([])
})
it('should return an array with a single diagnostic when Macro definition has space in param', () => {