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

Test: transforming function arguments annotated with JSDoc comments #31

Open
domenic opened this issue Aug 9, 2019 · 0 comments
Open
Milestone

Comments

@domenic
Copy link
Collaborator

domenic commented Aug 9, 2019

We need to expand or create counterparts to all the existing test cases to test cases where the type is only known through JSDoc comments. For example

const doc = document;
foo(doc);

/**
 * Does things
 *
 * @param {Document} document - a document
 */
function foo(d) {
  d.createElement();
}

needs to rewrite the createElement() call.

These tests need to cover all possible combinations of { namespace function, static method, method, getter, setter, constructor } x { JS, web } x { directly on object, on prototype }.

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