mirror of
https://github.com/jfmengels/elm-review.git
synced 2024-11-30 13:32:03 +03:00
Don't report error when details are the same
This commit is contained in:
parent
842f07b889
commit
3e884c8754
@ -1482,5 +1482,8 @@ expectConfigurationErrorDetailsMatch expectedError configurationError =
|
||||
if expectedError.message /= configurationError.message then
|
||||
Expect.fail (FailureMessage.messageMismatchForConfigurationError expectedError configurationError)
|
||||
|
||||
else if expectedError.details /= configurationError.details then
|
||||
Expect.fail (FailureMessage.unexpectedConfigurationErrorDetails expectedError.details configurationError)
|
||||
|
||||
else
|
||||
Expect.fail (FailureMessage.unexpectedGlobalErrorDetails expectedError.details configurationError)
|
||||
Expect.pass
|
||||
|
@ -4,7 +4,7 @@ module Review.Test.FailureMessage exposing
|
||||
, underMismatch, expectedMoreErrors, tooManyErrors, locationNotFound, underMayNotBeEmpty, locationIsAmbiguousInSourceCode
|
||||
, needToUsedExpectErrorsForModules, missingSources, duplicateModuleName, unknownModulesInExpectedErrors
|
||||
, missingFixes, unexpectedFixes, fixedCodeMismatch, unchangedSourceAfterFix, invalidSourceAfterFix, hasCollisionsInFixRanges
|
||||
, didNotExpectGlobalErrors, expectedMoreGlobalErrors, fixedCodeWhitespaceMismatch, messageMismatchForConfigurationError, messageMismatchForGlobalError, missingConfigurationError, tooManyGlobalErrors, unexpectedConfigurationError, unexpectedGlobalErrorDetails
|
||||
, didNotExpectGlobalErrors, expectedMoreGlobalErrors, fixedCodeWhitespaceMismatch, messageMismatchForConfigurationError, messageMismatchForGlobalError, missingConfigurationError, tooManyGlobalErrors, unexpectedConfigurationError, unexpectedConfigurationErrorDetails, unexpectedGlobalErrorDetails
|
||||
)
|
||||
|
||||
{-| Failure messages for the `Review.Test` module.
|
||||
|
Loading…
Reference in New Issue
Block a user