-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error formatting misleads when URL ends base/ #2209
Error formatting misleads when URL ends base/ #2209
Comments
What is happening here is that karma is truncating the strings before |
@dignifiedquire what are your thoughts on perhaps making a breaking change to choose a unique name for the base url, such as |
If we are switching we should be switching to something more specific, like |
So maybe a configurable option like Edit: oh, I think I misunderstood - basically fix the regex. I think I read this at 6 am and misread it. |
Strip only specified hostname & port from result Fixes #2209
Actual behavior
I had a test that ultimately boiled down to the following Jasmine expectation:
As the failure message, I get:
This was quite puzzling and a pain to isolate to karma in my real scenario.
Expected behavior
Clear message as given by Jasmine directly:
I think this issue relates to the URL_REGEXP in Karma's reporter.js but I haven't dived deep enough to follow what's going on there.
Environment Details
karma --version
):Karma version: 1.1.0
karma.config.js
fileMinimal jasmine config.
Steps to reproduce the behaviour
The text was updated successfully, but these errors were encountered: