mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-07 13:14:29 +08:00
#4454 Clean up more tests and code
* Remove some tests we no longer need * Delete blocks of redundant code * Compress some tests together to simplify them * Remove a little code for ancient linter versions * Escape more executables we didn't escape before * Rename a deno option that didn't match our conventions
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
Execute(The deadnix handler should handle deadnix output):
|
||||
let output = [
|
||||
\'{"file":"./flake.nix","results":[{"column":5,"endColumn":9,"line":23,"message":"Unused lambda pattern: self"},{"column":2,"endColumn":6,"line":1,"message":"Unused lambda pattern: pkgs"}]}'
|
||||
\]
|
||||
|
||||
AssertEqual
|
||||
\ [
|
||||
\ {
|
||||
@@ -20,7 +16,9 @@ Execute(The deadnix handler should handle deadnix output):
|
||||
\ 'type': 'W',
|
||||
\ },
|
||||
\ ],
|
||||
\ ale#handlers#deadnix#Handle(bufnr(''), output)
|
||||
\ ale#handlers#deadnix#Handle(bufnr(''), [
|
||||
\ '{"file":"./flake.nix","results":[{"column":5,"endColumn":9,"line":23,"message":"Unused lambda pattern: self"},{"column":2,"endColumn":6,"line":1,"message":"Unused lambda pattern: pkgs"}]}'
|
||||
\ ])
|
||||
|
||||
AssertEqual [], ale#handlers#deadnix#Handle(bufnr(''), [''])
|
||||
AssertEqual [], ale#handlers#deadnix#Handle(bufnr(''), ['not json'])
|
||||
|
||||
Reference in New Issue
Block a user