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

importDeclaration.getStructure moduleSpecifier without quotes #482

Merged
merged 3 commits into from
Oct 28, 2018

Conversation

cancerberoSgx
Copy link
Contributor

fix incompatibility between ImportDeclaration.getStructure and moduleNode.addImportDeclaration - basically moduleSpecifier was quoted in getStructure()

namedImports: [{ name: "test", alias: undefined }],
namespaceImport: undefined
});
});
});

describe(nameof<ImportDeclaration>(n => n.getStructure) + " compatibiltiy with " +
Copy link
Contributor Author

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

Copy link
Owner

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.

@dsherret dsherret added the bug label Oct 28, 2018
@dsherret dsherret merged commit 92c7f46 into dsherret:master Oct 28, 2018
@dsherret
Copy link
Owner

Thanks a lot for the fix @cancerberoSgx! This was also incorrectly being done in export declarations so I've included that in this PR.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 94.847% when pulling 0326b22 on cancerberoSgx:importDeclarationGetStructure into 5db4606 on dsherret:master.

@dsherret
Copy link
Owner

Released now in 18.0.0.

dsherret pushed a commit that referenced this pull request May 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants