mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-26 15:43:16 +08:00
Fix #988 - Support --fix-dry-run for ESLint by processing the JSON output
This commit is contained in:
1 parent
6318a08e08
commit
5160f814d9
4 files changed
+69
-1
No files matched your search
@@ -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