mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
[doclint] Fix bug in documentation linter
This patch: - fixes a typo in documentation linter, which resulted in only certain method arguments being linted. - adds missing arguments to the documentation References #14.
This commit is contained in:
@@ -39,7 +39,7 @@ class Documentation {
|
||||
const actualArgs = actualMethod.args.map(arg => arg.name);
|
||||
const expectedArgs = expectedMethod.args.map(arg => arg.name);
|
||||
const argDiff = diff(actualArgs, expectedArgs);
|
||||
if (argDiff.extra.length || argDiff.missing.diff) {
|
||||
if (argDiff.extra.length || argDiff.missing.length) {
|
||||
result.badArguments.push({
|
||||
method: `${className}.${methodName}`,
|
||||
missingArgs: argDiff.missing,
|
||||
|
||||
Reference in New Issue
Block a user