@@ -112,6 +112,8 @@ npm i --save @angular-package/testing
112112 * Main.
113113 */
114114export {
115+ Random ,
116+
115117 Testing , // Main class with all testings.
116118 TestingActual , // Initialize testing for `actual`.
117119 TestingCustom , // Class to pass custom testings.
@@ -266,7 +268,7 @@ t.describe(`Describe`, () => {
266268
267269### ` TestingCustom `
268270
269- Use ` TestingCustom ` class for custom testing.
271+ Use ` TestingCustom ` class for custom testing. Access to the included tests are through the ` testing ` getter.
270272
271273``` typescript
272274import {
@@ -278,7 +280,10 @@ import {
278280} from " @angular-package/testing" ;
279281
280282const t = new TestingCustom (
281- [TestingToBe ], // List of test.
283+ // List of test to use.
284+ [
285+ TestingToBe
286+ ],
282287 true , // Describe executable.
283288 true , // It executable.
284289 { describe: [], it: [] }, // Executable numbers of `describe` and `it`.
@@ -289,6 +294,14 @@ const t = new TestingCustom(
289294 new TestingIt (), // Common instance for `TestingIt` for `counter` purposes
290295 new TestingExpectation () // Common instance for `TestingExpectation`
291296);
297+
298+ t .describe (
299+ ` DescribeA ` ,
300+ () => t .testing // testing getter
301+ .beforeEach (() => {})
302+ .toBeDate (new Date ())
303+ .toBeUndefined (undefined )
304+ );
292305```
293306
294307<br >
0 commit comments