-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.d.ts
23 lines (23 loc) · 907 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { ImpactValue, RunOptions, Spec } from "axe-core";
export interface JasmineAxeConfigureOptions extends RunOptions {
globalOptions?: Spec;
impactLevels?: ImpactValue[];
}
/**
* Small wrapper for axe-core#run that enables promises,
* default options and injects html to be tested
*/
export declare const configureAxe: (options?: JasmineAxeConfigureOptions) => (html: Element, additionalOptions?: {}) => Promise<unknown>;
export declare const toHaveNoViolations: jasmine.CustomMatcherFactories;
export declare const toHaveLessThanXViolations: jasmine.CustomMatcherFactories;
export declare const axe: (html: Element, additionalOptions?: {}) => Promise<unknown>;
declare global {
namespace jasmine {
interface Matchers<T> {
toHaveNoViolations(): void;
toHaveLessThanXViolations(allowedViolations: number): void;
}
}
interface Node {
}
}