Skip to content

Commit 4b39d0f

Browse files
committed
Fix UnitTests for new FileDiagnostic struct
1 parent ac78312 commit 4b39d0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ghcide/test/exe/UnitTests.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ tests = do
5151
let uri = Uri "file://"
5252
uriToFilePath' uri @?= Just ""
5353
, testCase "showDiagnostics prints ranges 1-based (like vscode)" $ do
54-
let diag = ("", Diagnostics.ShowDiag, Diagnostic
54+
let diag = Diagnostics.FileDiagnostic "" Diagnostics.ShowDiag Diagnostic
5555
{ _codeDescription = Nothing
5656
, _data_ = Nothing
5757
, _range = Range
@@ -64,7 +64,7 @@ tests = do
6464
, _message = ""
6565
, _relatedInformation = Nothing
6666
, _tags = Nothing
67-
})
67+
} Diagnostics.NoStructuredMessage
6868
let shown = T.unpack (Diagnostics.showDiagnostics [diag])
6969
let expected = "1:2-3:4"
7070
assertBool (unwords ["expected to find range", expected, "in diagnostic", shown]) $

0 commit comments

Comments
 (0)