mirror of
https://github.com/sasjs/lint.git
synced 2026-01-04 11:20:04 +00:00
tests(hasMacroNameInMend): Added more
This commit is contained in:
@@ -348,6 +348,15 @@ describe('hasMacroNameInMend', () => {
|
||||
expect(formattedContent).toEqual(expectedContent)
|
||||
})
|
||||
|
||||
it('should add macro name to the mend statement if not present ( code in single line )', () => {
|
||||
const content = `%macro somemacro; %put &sysmacroname; %mend;`
|
||||
const expectedContent = `%macro somemacro; %put &sysmacroname; %mend somemacro;`
|
||||
|
||||
const formattedContent = hasMacroNameInMend.fix!(content, new LintConfig())
|
||||
|
||||
expect(formattedContent).toEqual(expectedContent)
|
||||
})
|
||||
|
||||
it('should add macro name to the mend statement if not present ( with multiple macros )', () => {
|
||||
const content = `
|
||||
%macro somemacro;
|
||||
|
||||
Reference in New Issue
Block a user