Skip to content

Commit 9d7cfcc

Browse files
test(TestingExpectation): add.
1 parent 529bb79 commit 9d7cfcc

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

src/test/test-expectation.spec.ts

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
// Class.
2+
import { Testing, TestingExpectation } from "../lib";
3+
// Execute.
4+
import { ExecuteSpec } from "./execute";
5+
6+
const execute = true;
7+
const executeDescribe = true;
8+
const executeIt = true;
9+
10+
if (execute) {
11+
const t = new Testing(
12+
executeDescribe,
13+
executeIt
14+
);
15+
const to = new TestingExpectation();
16+
t.describe(`TestingExpectation`, () => t
17+
.spec(e => e.toBeArrayOfNull([null, null]))
18+
.it(`it`, () => to
19+
.toContain(['a', 'b', 'c'], 'c')
20+
.toContain('string number', 'ber')
21+
.toEqual({a: 2}, {a: 2})
22+
.toMatch("my string", /string$/)
23+
.toMatch('number', 'ber')
24+
25+
.not.toContain(['a', 'b', 'c'], 'h')
26+
.toContain(['a', 'b', 'c'], 'a')
27+
28+
.not.toBeBigInt('a')
29+
)
30+
);
31+
}

0 commit comments

Comments
 (0)