mirror of
https://github.com/microsoft/playwright.git
synced 2024-11-29 01:53:54 +03: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 {
|
||||
const name = type + method[0].toUpperCase() + method.substring(1) + 'Params';
|
||||
if (!scheme[name])
|
||||
throw new ValidationError(`Uknown scheme for ${type}.${method}`);
|
||||
throw new ValidationError(`Unknown scheme for ${type}.${method}`);
|
||||
return scheme[name](params, '');
|
||||
}
|
||||
|
@ -143,7 +143,7 @@ export class DispatcherConnection {
|
||||
this._validateParams = (type: string, method: string, params: any): any => {
|
||||
const name = type + method[0].toUpperCase() + method.substring(1) + 'Params';
|
||||
if (!scheme[name])
|
||||
throw new ValidationError(`Uknown scheme for ${type}.${method}`);
|
||||
throw new ValidationError(`Unknown scheme for ${type}.${method}`);
|
||||
return scheme[name](params, '');
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user