axe-webdriverjs: add deprecated analyze test

This commit is contained in:
Tyler Krupicka 2019-03-10 20:20:48 -07:00
parent 5cc526244c
commit fc03469ff5

View File

@ -22,6 +22,10 @@ const inTest = async (webDriver: WebDriver) => {
.configure(spec)
.analyze((err: Error | null, internalResults: AxeAnalysis) => {});
const deprecatedAnalysis: AxeAnalysis = await AxeBuilder(webDriver).analyze(
(internalResults: AxeAnalysis) => {}
);
const inapplicable: Result[] = analysis.inapplicable;
const incomplete: Result[] = analysis.incomplete;
const passes: Result[] = analysis.passes;