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

[CLOSED] Some unit test fixes #10644

Open
core-ai-bot opened this issue Aug 30, 2021 · 4 comments
Open

[CLOSED] Some unit test fixes #10644

core-ai-bot opened this issue Aug 30, 2021 · 4 comments

Comments

@core-ai-bot
Copy link
Member

Issue by MarcelGerber
Thursday May 19, 2016 at 23:08 GMT
Originally opened as adobe/brackets#12437


Fixes the test failures we see on current master for ProjectModel (Unit), ExtensionManager (Unit) and CSS Code Hints (Extensions).

See the individual commit messages for more information.


MarcelGerber included the following code: https://github.com/adobe/brackets/pull/12437/commits

@core-ai-bot
Copy link
Member Author

Comment by nethip
Friday May 20, 2016 at 05:50 GMT


Thanks for fixing these@MarcelGerber . These changes look good to me.

@core-ai-bot
Copy link
Member Author

Comment by ficristo
Friday May 20, 2016 at 08:32 GMT


@MarcelGerber do you know why the ProjectModel tests needed to be changed?

@core-ai-bot
Copy link
Member Author

Comment by MarcelGerber
Friday May 20, 2016 at 08:42 GMT


It's because of this newly introduced change: adobe/brackets@a505026#diff-d93c1799d928e189223d1d4fa75f80dcR816.
Our isWithinProject check works by checking if the file/folder path (/foo before this change) begins with the project root path (/foo/).
I made sure that every path we pass to the function has a trailing /, so this doesn't cause any problems.

@core-ai-bot
Copy link
Member Author

Comment by ficristo
Friday May 20, 2016 at 08:45 GMT


Thank you!

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

No branches or pull requests

1 participant