summaryrefslogtreecommitdiff
path: root/test/handler/test_deadnix_handler.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/handler/test_deadnix_handler.vader')
-rw-r--r--test/handler/test_deadnix_handler.vader8
1 files changed, 3 insertions, 5 deletions
diff --git a/test/handler/test_deadnix_handler.vader b/test/handler/test_deadnix_handler.vader
index 242af881..508ce0f9 100644
--- a/test/handler/test_deadnix_handler.vader
+++ b/test/handler/test_deadnix_handler.vader
@@ -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'])