mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 21:24:33 +08:00
Fix #988 - Support --fix-dry-run for ESLint by processing the JSON output
This commit is contained in:
@@ -6,6 +6,14 @@ Execute(FuzzyJSONDecode should return the default for empty Strings):
|
||||
AssertEqual [], ale#util#FuzzyJSONDecode('', [])
|
||||
AssertEqual {}, ale#util#FuzzyJSONDecode('', {})
|
||||
|
||||
Execute(FuzzyJSONDecode should return the default value for ['']):
|
||||
AssertEqual [], ale#util#FuzzyJSONDecode([''], [])
|
||||
AssertEqual {}, ale#util#FuzzyJSONDecode([''], {})
|
||||
|
||||
Execute(FuzzyJSONDecode should return the default value for only whitespace lines):
|
||||
AssertEqual [], ale#util#FuzzyJSONDecode(['', "\n"], [])
|
||||
AssertEqual {}, ale#util#FuzzyJSONDecode(['', "\n"], {})
|
||||
|
||||
Execute(FuzzyJSONDecode should return the default for Lists with invalid JSON):
|
||||
AssertEqual [], ale#util#FuzzyJSONDecode(['x'], [])
|
||||
AssertEqual {}, ale#util#FuzzyJSONDecode(['x'], {})
|
||||
|
||||
Reference in New Issue
Block a user