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

fix(lint): ignore indentation multiple when set to zero

This commit is contained in:
Krishna Acondy
2021-03-29 09:40:32 +01:00
parent f1adcb8cb4
commit 52b63bac58
4 changed files with 30 additions and 6 deletions

View File

@@ -40,6 +40,20 @@ describe('LintConfig', () => {
expect(config.fileLintRules[0].type).toEqual(LintRuleType.File)
})
it('should create an instance with the indentation multiple set', () => {
const config = new LintConfig({ indentationMultiple: 5 })
expect(config).toBeTruthy()
expect(config.indentationMultiple).toEqual(5)
})
it('should create an instance with the indentation multiple turned off', () => {
const config = new LintConfig({ indentationMultiple: 0 })
expect(config).toBeTruthy()
expect(config.indentationMultiple).toEqual(0)
})
it('should create an instance with all flags set', () => {
const config = new LintConfig({
noTrailingSpaces: true,