Skip to content
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

Root path for project causes basePath stripping to fail #53

Open
RedGlow opened this issue Nov 10, 2014 · 0 comments
Open

Root path for project causes basePath stripping to fail #53

RedGlow opened this issue Nov 10, 2014 · 0 comments
Labels

Comments

@RedGlow
Copy link

RedGlow commented Nov 10, 2014

I'm mapping my project folder to a drive in windows, causing the karma configuration file to be located at a root path (Y:\ in my case). The logic of config.basePath seems to be slightly bugged/inconsistent in this case, because basePath contains a trailing / (Y:/) in this case, instead of stripping it like in other cases. So, the htmlPath computation code, in the file.originalPath.replace(basePath + '/', '') piece of code, causes the replacement to contain a double trailing / (Y://), thus failing the substitution, thus messing up the code that follows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants