Skip to content

Commit

Permalink
test(lint): remove suppression for axe version
Browse files Browse the repository at this point in the history
as the type def has been fixed in axe v4
  • Loading branch information
mohanraj-r committed Aug 13, 2020
1 parent 30d5a6c commit ab339d5
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions packages/wdio/src/wdio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,13 @@ import { A11yConfig, recommended } from '@sa11y/preset-rules';
import { A11yError } from '@sa11y/format';
import { getViolations } from '@sa11y/common';

// TODO (refactor): Find a way to declare version into axe namespace
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
// eslint-disable-next-line import/namespace
export const axeVersion: string | undefined = axe.version;

/**
* Return version of axe injected into browser
*/
export async function getAxeVersion(driver: BrowserObject): Promise<typeof axeVersion> {
return driver.execute(() => {
// TODO (refactor): Find a way to declare version into axe namespace
// eslint-disable-next-line @typescript-eslint/ban-ts-ignore
// @ts-ignore
// eslint-disable-next-line import/namespace
return typeof axe === 'object' ? axe.version : undefined;
});
}
Expand Down

0 comments on commit ab339d5

Please sign in to comment.