-
Notifications
You must be signed in to change notification settings - Fork 22
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
[FIX] JSModuleAnalyzer: Fix detection of bundle name #705
Conversation
2a9a916
to
57bcf31
Compare
Code is ready for review. I will finish and enhance the tests soon. |
Done |
LGTM |
const info = analyzeString(content, "modules/module-with-jquery-sap-declare.js"); | ||
t.is(info.name, "modules/module-with-jquery-sap-declare.js"); | ||
t.is(info.rawModule, false); | ||
t.is(info.format, "ui5-declare", "Format should be declare once a jQuery.sap.declare statement is found"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From the content I would say that the format should be ui5-define, not ui5-declare.
I understand that this was not changed by this PR (and rather is a sleeping bug in the analyzer). But seeing now a test that declares this the "expected" behavior, feels wrong.
Can we at least comment that this needs to be fixed? Or is there a 'todo' variant for 'test' (similar to QUnit.todo)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
No description provided.