-
Notifications
You must be signed in to change notification settings - Fork 189
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
importDeclaration.getStructure moduleSpecifier without quotes #482
importDeclaration.getStructure moduleSpecifier without quotes #482
Conversation
namedImports: [{ name: "test", alias: undefined }], | ||
namespaceImport: undefined | ||
}); | ||
}); | ||
}); | ||
|
||
describe(nameof<ImportDeclaration>(n => n.getStructure) + " compatibiltiy with " + |
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.
this test show the problem
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.
Thanks! I removed this though because it's superfluous. The other tests above ensure the problem won't happen and I'd prefer all tests just test one thing rather than testing multiple aspects at once.
Thanks a lot for the fix @cancerberoSgx! This was also incorrectly being done in export declarations so I've included that in this PR. |
Released now in 18.0.0. |
…n module specifier in structure
fix incompatibility between ImportDeclaration.getStructure and moduleNode.addImportDeclaration - basically moduleSpecifier was quoted in getStructure()