Skip to content

Commit

Permalink
clarify error
Browse files Browse the repository at this point in the history
  • Loading branch information
Happypig375 committed Aug 13, 2023
1 parent f494f22 commit 009618c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/FsAutoComplete.Tests.Lsp/EmptyFileTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ let tests state =
let! compilerResults = waitForCompilerDiagnosticsForFile "EmptyFile.fsx" events |> Async.StartChild

match! compilerResults with
| Ok () -> failtest "should get a checking error from an 'c' by itself"
| Ok () -> failtest "should get an F# compiler checking error from an 'c' by itself"
| Core.Result.Error errors ->
Expect.hasLength errors 1 "should have an error FS0039: identifier not defined"
Expect.hasLength errors 1 "should have only an error FS0039: identifier not defined"
Expect.exists errors (fun error -> error.Code = Some "39") "should have an error FS0039: identifier not defined"

match! completions with
Expand Down

0 comments on commit 009618c

Please sign in to comment.