Skip to content

Commit d9fd6ce

Browse files
test(README.md): update.
1 parent fac26f2 commit d9fd6ce

File tree

1 file changed

+30
-1
lines changed

1 file changed

+30
-1
lines changed

src/test/README.md.spec.ts

+30-1
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,41 @@
11
// Example usage.
2-
import { Testing, TestingExpectToBe } from '../lib';
2+
import { Testing, TestingCustom, TestingToBe, TestingExpectToBe, TestingDescribe, TestingIt, TestingExpectation } from '../lib';
33
// Constant.
44
import { TestingClass, TESTING_SYMBOL_NUMBER } from '../lib/constants';
55
/**
66
* Create `Testing` instance.
77
*/
88
const testing = new Testing();
99
const toBe = new TestingExpectToBe();
10+
11+
12+
/**
13+
*
14+
*/
15+
const t = new TestingCustom(
16+
// List of test to use.
17+
[
18+
TestingToBe
19+
],
20+
true, // Describe executable.
21+
true, // It executable.
22+
{ describe: [], it: [] }, // Executable numbers of `describe` and `it`.
23+
['DescribeA'], // Descriptions for `describe`.
24+
['ItA'], // Expectations for `it`.
25+
[false, false], // `boolean` or list of [`boolean`, `boolean`]
26+
new TestingDescribe(), // Common instance for `TestingDescribe` for `counter` purposes
27+
new TestingIt(), // Common instance for `TestingIt` for `counter` purposes
28+
new TestingExpectation() // Common instance for `TestingExpectation`
29+
);
30+
31+
t.describe(
32+
`DescribeA`,
33+
() => t.testing
34+
.beforeEach(() => {})
35+
.toBeDate(new Date())
36+
.toBeUndefined(undefined)
37+
);
38+
1039
/**
1140
* Tests.
1241
*/

0 commit comments

Comments
 (0)