@@ -112,6 +112,8 @@ npm i --save @angular-package/testing
112
112
* Main.
113
113
*/
114
114
export {
115
+ Random ,
116
+
115
117
Testing , // Main class with all testings.
116
118
TestingActual , // Initialize testing for `actual`.
117
119
TestingCustom , // Class to pass custom testings.
@@ -266,7 +268,7 @@ t.describe(`Describe`, () => {
266
268
267
269
### ` TestingCustom `
268
270
269
- Use ` TestingCustom ` class for custom testing.
271
+ Use ` TestingCustom ` class for custom testing. Access to the included tests are through the ` testing ` getter.
270
272
271
273
``` typescript
272
274
import {
@@ -278,7 +280,10 @@ import {
278
280
} from " @angular-package/testing" ;
279
281
280
282
const t = new TestingCustom (
281
- [TestingToBe ], // List of test.
283
+ // List of test to use.
284
+ [
285
+ TestingToBe
286
+ ],
282
287
true , // Describe executable.
283
288
true , // It executable.
284
289
{ describe: [], it: [] }, // Executable numbers of `describe` and `it`.
@@ -289,6 +294,14 @@ const t = new TestingCustom(
289
294
new TestingIt (), // Common instance for `TestingIt` for `counter` purposes
290
295
new TestingExpectation () // Common instance for `TestingExpectation`
291
296
);
297
+
298
+ t .describe (
299
+ ` DescribeA ` ,
300
+ () => t .testing // testing getter
301
+ .beforeEach (() => {})
302
+ .toBeDate (new Date ())
303
+ .toBeUndefined (undefined )
304
+ );
292
305
```
293
306
294
307
<br >
0 commit comments