Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

fix(validation): error typo "unknown" (#3304)

Max Schmitt4956041109d7
diff --git a/src/rpc/client/connection.ts b/src/rpc/client/connection.ts
index 37258e179e..14d539aed0 100644
--- a/src/rpc/client/connection.ts
+++ b/src/rpc/client/connection.ts
@@ -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, '');
}
diff --git a/src/rpc/server/dispatcher.ts b/src/rpc/server/dispatcher.ts
index 21c055bbf7..57a76cbdbc 100644
--- a/src/rpc/server/dispatcher.ts
+++ b/src/rpc/server/dispatcher.ts
@@ -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, '');
};
}