chore: fix doclint violations (#6849)

This commit is contained in:
Jack Franklin 2021-02-09 11:52:35 +00:00 committed by GitHub
parent f718b14b64
commit fd857474cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 1 deletions

View File

@ -24,7 +24,7 @@
"eslint": "([ \"$CI\" = true ] && eslint --ext js --ext ts --quiet -f codeframe . || eslint --ext js --ext ts .)",
"eslint-fix": "eslint --ext js --ext ts --fix .",
"commitlint": "commitlint --from=HEAD~1",
"lint": "npm run eslint && npm run tsc && npm run doc && npm run commitlint",
"lint": "npm run eslint && npm run build && npm run doc && npm run commitlint",
"doc": "node utils/doclint/cli.js",
"clean-lib": "rm -rf lib",
"build": "npm run tsc && npm run generate-d-ts",

View File

@ -842,6 +842,21 @@ function compareDocumentations(actual, expected) {
expectedName: 'ConnectOptions',
},
],
[
'Method Page.deleteCookie() ...cookies',
{
actualName: '...Object',
expectedName: '...DeleteCookiesRequest',
},
],
[
'Method Page.emulateVisionDeficiency() type',
{
actualName: 'string',
expectedName:
'"none"|"achromatopsia"|"blurredVision"|"deuteranopia"|"protanopia"|"tritanopia"',
},
],
]);
const expectedForSource = expectedNamingMismatches.get(source);