forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchai-jquery.d.ts
37 lines (32 loc) · 1019 Bytes
/
chai-jquery.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
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Type definitions for chai-jquery 1.1.1
// Project: https://github.com/chaijs/chai-jquery
// Definitions by: Kazi Manzur Rashid <https://github.com/kazimanzurrashid/>
// DefinitelyTyped: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../chai/chai.d.ts" />
declare module chai {
interface NameValueRegexMatcher {
match(value: RegExp): boolean;
}
interface NameValueMatcher {
(name: string, value?: string): boolean;
}
interface Have {
attr: NameValueMatcher;
css: NameValueMatcher;
data: NameValueMatcher;
class(className: string): boolean;
id(id: string): boolean;
html(html: string): boolean;
text(text: string): boolean;
value(text: string): boolean;
(selector: string): boolean;
}
interface Be {
visible: boolean;
hidden: boolean;
selected: boolean;
checked: boolean;
disabled: boolean;
(selector: string): boolean;
}
}