mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-02 14:38:20 +08:00
* add types for chai-webdriverio * fix lint warning and remove extra lint rules * fix compilation * added types from webdriverio * try to fix build * try to fix build
25 lines
821 B
TypeScript
25 lines
821 B
TypeScript
// Type definitions for chai-webdriverio 0.4
|
|
// Project: https://github.com/marcodejongh/chai-webdriverio
|
|
// Definitions by: Nikolai Orekhov <https://github.com/sherlock1982>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/// <reference types="webdriverio" />
|
|
/// <reference types="chai" />
|
|
|
|
declare namespace Chai {
|
|
interface Assertion {
|
|
count: (count: number) => void;
|
|
focus: () => void;
|
|
text: (expected: string|number|RegExp) => void;
|
|
there: () => void;
|
|
value: (expected: string|number|RegExp) => void;
|
|
visible: () => void;
|
|
immediately: Assertion;
|
|
}
|
|
}
|
|
|
|
declare module 'chai-webdriverio' {
|
|
function chaiWebdriverIO(client: WebdriverIO.Client<void>, options?: any): (chai: any, utils: any) => void;
|
|
export = chaiWebdriverIO;
|
|
}
|