Skip to content

Commit

Permalink
fix(webdriverio,webdriverjs): fix setLegacyMode return type (#445)
Browse files Browse the repository at this point in the history
  • Loading branch information
straker committed Feb 10, 2022
1 parent 765c81a commit 147626a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/webdriverio/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ export default class AxeBuilder {
* axe.finishRun() which is called in a blank page. This uses axe.run() instead,
* but with the restriction that cross-origin frames will not be tested.
*/
public setLegacyMode(legacyMode = true): AxeBuilder {
public setLegacyMode(legacyMode = true): this {
this.legacyMode = legacyMode;
return this;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/webdriverjs/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ class AxeBuilder {
* axe.finishRun() which is called in a blank page. This uses axe.run() instead,
* but with the restriction that cross-origin frames will not be tested.
*/
public setLegacyMode(legacyMode = true): AxeBuilder {
public setLegacyMode(legacyMode = true): this {
this.legacyMode = legacyMode;
return this;
}
Expand Down

0 comments on commit 147626a

Please sign in to comment.