summaryrefslogtreecommitdiff
path: root/test/handler
diff options
context:
space:
mode:
authorHéctor Ramón Jiménez <hector0193@gmail.com>2018-05-12 20:27:33 +0200
committerHéctor Ramón Jiménez <hector0193@gmail.com>2018-05-12 20:27:33 +0200
commit115952fae39a70f7b2eee5014da047bc7542816d (patch)
treedaae692d8f8d37cdded69d771f5f460993b598c0 /test/handler
parentc3f61c391bd74e8feb0d7d127ba353093a61b5c7 (diff)
downloadale-115952fae39a70f7b2eee5014da047bc7542816d.zip
Show Elm.Kernel as location when `report.path` is `null` in a general problem
Diffstat (limited to 'test/handler')
-rw-r--r--test/handler/test_elmmake_handler.vader12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/handler/test_elmmake_handler.vader b/test/handler/test_elmmake_handler.vader
index 063c0429..8abe3295 100644
--- a/test/handler/test_elmmake_handler.vader
+++ b/test/handler/test_elmmake_handler.vader
@@ -95,6 +95,12 @@ Execute(The elm make handler should handle errors in imported modules):
\ {
\ 'lnum': 1,
\ 'type': 'E',
+ \ 'text': "Elm.Kernel - error details\n\nstyled details",
+ \ 'detail': "Elm.Kernel ----------\n\nerror details\n\nstyled details"
+ \ },
+ \ {
+ \ 'lnum': 1,
+ \ 'type': 'E',
\ 'text': "src/Module.elm:404 - error details\n\nstyled details",
\ 'detail': "src/Module.elm:404 ----------\n\nerror details\n\nstyled details"
\ },
@@ -107,6 +113,12 @@ Execute(The elm make handler should handle errors in imported modules):
\ "message": ["error details\n\n", { "string": "styled details" }]
\ }',
\ '{
+ \ "type": "error",
+ \ "path": null,
+ \ "title": "UNKNOWN IMPORT",
+ \ "message": ["error details\n\n", { "string": "styled details" }]
+ \ }',
+ \ '{
\ "type": "compile-errors",
\ "errors": [
\ {