mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
fix(validation): error typo "unknown" (#3304)
This commit is contained in:
parent
9280037d0f
commit
4956041109
@ -242,6 +242,6 @@ const scheme = createScheme(tChannel);
|
|||||||
function validateParams(type: string, method: string, params: any): any {
|
function validateParams(type: string, method: string, params: any): any {
|
||||||
const name = type + method[0].toUpperCase() + method.substring(1) + 'Params';
|
const name = type + method[0].toUpperCase() + method.substring(1) + 'Params';
|
||||||
if (!scheme[name])
|
if (!scheme[name])
|
||||||
throw new ValidationError(`Uknown scheme for ${type}.${method}`);
|
throw new ValidationError(`Unknown scheme for ${type}.${method}`);
|
||||||
return scheme[name](params, '');
|
return scheme[name](params, '');
|
||||||
}
|
}
|
||||||
|
|||||||
@ -143,7 +143,7 @@ export class DispatcherConnection {
|
|||||||
this._validateParams = (type: string, method: string, params: any): any => {
|
this._validateParams = (type: string, method: string, params: any): any => {
|
||||||
const name = type + method[0].toUpperCase() + method.substring(1) + 'Params';
|
const name = type + method[0].toUpperCase() + method.substring(1) + 'Params';
|
||||||
if (!scheme[name])
|
if (!scheme[name])
|
||||||
throw new ValidationError(`Uknown scheme for ${type}.${method}`);
|
throw new ValidationError(`Unknown scheme for ${type}.${method}`);
|
||||||
return scheme[name](params, '');
|
return scheme[name](params, '');
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user