-
Notifications
You must be signed in to change notification settings - Fork 10
/
mocha-cakes.d.ts
39 lines (33 loc) · 1.12 KB
/
mocha-cakes.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
38
39
interface MochaCakesTestFn {
(description: string, testFn: Function): any;
only(description: string, testFn: Function): any;
skip(description: string, testFn: Function): any;
}
interface MochaCakesDone {
(error?: any): any
}
interface MochaCakesHookCallback {
(done: MochaCakesDone): void;
}
interface MochaCakesHook {
(callback: MochaCakesHookCallback): void;
(description: string, callback: MochaCakesHookCallback): void;
}
declare var Feature: MochaCakesTestFn;
declare var Scenario: MochaCakesTestFn;
declare var Given: MochaCakesTestFn;
declare var And: MochaCakesTestFn;
declare var When: MochaCakesTestFn;
declare var Then: MochaCakesTestFn;
declare var But: MochaCakesTestFn;
declare var feature: MochaCakesTestFn;
declare var scenario: MochaCakesTestFn;
declare var given: MochaCakesTestFn;
declare var and: MochaCakesTestFn;
declare var when: MochaCakesTestFn;
declare var then: MochaCakesTestFn;
declare var but: MochaCakesTestFn;
declare var afterEachFeature: MochaCakesHook;
declare var beforeEachFeature: MochaCakesHook;
declare var afterEachScenario: MochaCakesHook;
declare var beforeEachScenario: MochaCakesHook;