update axe-webdriverjs analyze

This commit is contained in:
Tyler Krupicka
2019-03-07 13:38:51 -08:00
parent a7836521cc
commit 46f86b5961
2 changed files with 4 additions and 2 deletions
@@ -20,7 +20,7 @@ const inTest = async (webDriver: WebDriver) => {
.disableRules("rule")
.disableRules(["rule", "rule"])
.configure(spec)
.analyze((internalResults: AxeAnalysis) => {});
.analyze((err: Error, internalResults: AxeAnalysis) => {});
const inapplicable: Result[] = analysis.inapplicable;
const incomplete: Result[] = analysis.incomplete;
+3 -1
View File
@@ -74,7 +74,9 @@ export interface AxeBuilder {
* Perform analysis and retrieve results.
* @param callback Function to execute when analysis completes.
*/
analyze(callback: (results: AxeAnalysis) => void): Promise<AxeAnalysis>;
analyze(
callback?: (err: Error, results: AxeAnalysis) => void
): Promise<AxeAnalysis>;
}
export const AxeBuilder: {