@@ -84,9 +84,8 @@ type TestContext = AssertContext & {
84
84
plan(count: number): void;
85
85
skip: AssertContext;
86
86
};
87
- type CallbackTestContext = TestContext & { end(): void; };
88
- type ContextualTestContext = TestContext & { context: any; };
89
- type ContextualCallbackTestContext = CallbackTestContext & { context: any; };
87
+ type ContextualTestContext = TestContext & { context: any; };
88
+ type ContextualCallbackTestContext = TestContext & { context: any; end(): void; };
90
89
91
90
/**
92
91
* Test Implementations
@@ -101,8 +100,6 @@ type TestImplementation<T, R> =
101
100
| TestFunction<T, R>
102
101
| Array<TestFunction<T, R>>;
103
102
104
- type Test = TestImplementation<TestContext, SpecialReturnTypes | void>;
105
- type CallbackTest = TestImplementation<CallbackTestContext, void>;
106
103
type ContextualTest = TestImplementation<ContextualTestContext, SpecialReturnTypes | void>;
107
104
type ContextualCallbackTest = TestImplementation<ContextualCallbackTestContext, void>;
108
105
@@ -111,40 +108,6 @@ type ContextualCallbackTest = TestImplementation<ContextualCallbackTestContext,
111
108
* Method Types
112
109
*/
113
110
114
- type TestMethod = {
115
- ( implementation: Test): void;
116
- (name: string, implementation: Test): void;
117
-
118
- serial : TestMethod;
119
- before : TestMethod;
120
- after : TestMethod;
121
- skip : TestMethod;
122
- todo : TestMethod;
123
- failing : TestMethod;
124
- only : TestMethod;
125
- beforeEach : TestMethod;
126
- afterEach : TestMethod;
127
- cb : CallbackTestMethod;
128
- always : TestMethod;
129
- };
130
-
131
- type CallbackTestMethod = {
132
- ( implementation: CallbackTest): void;
133
- (name: string, implementation: CallbackTest): void;
134
-
135
- serial : CallbackTestMethod;
136
- before : CallbackTestMethod;
137
- after : CallbackTestMethod;
138
- skip : CallbackTestMethod;
139
- todo : CallbackTestMethod;
140
- failing : CallbackTestMethod;
141
- only : CallbackTestMethod;
142
- beforeEach : CallbackTestMethod;
143
- afterEach : CallbackTestMethod;
144
- cb : CallbackTestMethod;
145
- always : CallbackTestMethod;
146
- };
147
-
148
111
type ContextualTestMethod = {
149
112
( implementation: ContextualTest): void;
150
113
(name: string, implementation: ContextualTest): void;
0 commit comments