Skip to content

Commit f4ea5de

Browse files
test: update to test TestingExpectToBe.
1 parent 6b0e4f0 commit f4ea5de

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Class.
22
import { Testing } from '../lib/testing.class';
3-
import { TestingToBeMatchers } from '../lib/testing-tobe-matchers.class';
3+
import { TestingExpectToBe } from '../lib/expectation/testing-expect-to-be.class';
44
// Constants.
55
import { TESTING_ARRAY_BIGINT } from '../lib/constants/array.const';
66
import { TESTING_BIGINT } from '../lib/constants/big-int.const';
@@ -19,17 +19,18 @@ import { TESTING_UNDEFINED } from '../lib/constants/undefined.const';
1919
/**
2020
* Create `Testing` instance.
2121
*/
22-
const testing = new Testing(true, true);
22+
const t = new Testing();
23+
2324
/**
2425
* Tests.
2526
*/
26-
testing.describe('Expects', () => {
27-
const toBe = new TestingToBeMatchers();
28-
testing
27+
t.describe(`TestingExpectToBe`, () => {
28+
const toBe = new TestingExpectToBe();
29+
t
2930
.it('toBe.array', () => toBe.array(TESTING_ARRAY_BIGINT))
3031
.it('toBe.bigint', () => toBe.bigint(TESTING_BIGINT))
3132
.it('toBe.boolean', () => toBe.boolean(TESTING_TRUE))
32-
.it('toBe.class', () => toBe.class(TestingToBeMatchers))
33+
.it('toBe.class', () => toBe.class(TestingExpectToBe))
3334
.it('toBe.date', () => toBe.date(new Date()))
3435
.it('toBe.false', () => toBe.false(TESTING_FALSE))
3536
.it('toBe.function', () => toBe.function(TESTING_FUNCTION))
@@ -54,7 +55,7 @@ testing.describe('Expects', () => {
5455
.it('toBe.true', () => toBe.true(TESTING_TRUE))
5556
.it('toBe.undefined', () => toBe.undefined(TESTING_UNDEFINED))
5657
;
57-
testing
58+
t
5859
.it('toBe.not.array', () => toBe.not.array(TESTING_BIGINT))
5960
.it('toBe.not.bigint', () => toBe.not.bigint(TESTING_ARRAY_BIGINT))
6061
.it('toBe.not.boolean', () => toBe.not.boolean(TESTING_NOT_DEFINED))
@@ -81,6 +82,9 @@ testing.describe('Expects', () => {
8182
.it('toBe.not.stringOfLengthBetween', () => toBe.not.stringOfLengthBetween(TESTING_STRING, 0, 1))
8283
.it('toBe.not.symbol', () => toBe.not.symbol(TESTING_DATE))
8384
.it('toBe.not.true', () => toBe.not.true(TESTING_NUMBER))
84-
.it('toBe.not.undefined', () => toBe.not.undefined(TESTING_REGEXP))
85-
;
85+
.it('toBe.not.undefined', () => toBe.not.undefined(TESTING_REGEXP));
8686
});
87+
88+
89+
90+

0 commit comments

Comments
 (0)