Skip to content

Commit bf3c48e

Browse files
test: update.
1 parent 35f7a3c commit bf3c48e

1 file changed

Lines changed: 54 additions & 52 deletions

File tree

src/test/testing-tobe-matchers.spec.ts

Lines changed: 54 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -26,59 +26,61 @@ const testing = new Testing(true, true);
2626
testing.describe('Expects', () => {
2727
const toBe = new TestingToBeMatchers();
2828
testing
29-
.it('toBe.array', () => toBe.array(TESTING_ARRAY_BIGINT))
30-
.it('toBe.bigint', () => toBe.bigint(TESTING_BIGINT))
31-
.it('toBe.boolean', () => toBe.boolean(TESTING_TRUE))
32-
.it('toBe.class', () => toBe.class(TestingToBeMatchers))
33-
.it('toBe.date', () => toBe.date(new Date()))
34-
.it('toBe.false', () => toBe.false(TESTING_FALSE))
35-
.it('toBe.function', () => toBe.function(TESTING_FUNCTION))
36-
.it('toBe.instance', () => toBe.instance(new TestingClass(), TestingClass))
37-
.it('toBe.key', () => toBe.key(TESTING_STRING))
38-
.it('toBe.null', () => toBe.null(TESTING_NULL))
39-
.it('toBe.number', () => toBe.number(TESTING_NUMBER))
40-
.it('toBe.numberBetween', () => toBe.numberBetween(TESTING_NUMBER, {min: 0, max: 10304051}))
41-
.it('toBe.object', () => toBe.object(TESTING_OBJECT))
42-
.it('toBe.objectKey', () => toBe.objectKey(TESTING_OBJECT, 'key as string'))
43-
.it('toBe.objectKeyIn', () => toBe.objectKeyIn(TESTING_OBJECT, 'key as string'))
44-
.it('toBe.objectKeys', () => toBe.objectKeys(TESTING_OBJECT, ['!@#$%^&*()Company']))
45-
.it('toBe.objectKeysIn', () => toBe.objectKeysIn(TESTING_OBJECT, ['!@#$%^&*()Company']))
46-
.it('toBe.objectSomeKeys', () => toBe.objectSomeKeys(TESTING_OBJECT, ['!@#$%^&*()Company', ['no key']]))
47-
.it('toBe.regexp', () => toBe.regexp(TESTING_REGEXP))
48-
.it('toBe.string', () => toBe.string(TESTING_STRING))
49-
.it('toBe.stringIncludes', () => toBe.stringIncludes(TESTING_STRING, ['Company']))
50-
.it('toBe.stringIncludesSome', () => toBe.stringIncludesSome(TESTING_STRING, ['bla', 'Company']))
51-
.it('toBe.stringOfLength', () => toBe.stringOfLength(TESTING_STRING, {min: 0, max: 200}))
52-
.it('toBe.symbol', () => toBe.symbol(TESTING_SYMBOL_NUMBER))
53-
.it('toBe.true', () => toBe.true(TESTING_TRUE))
54-
.it('toBe.undefined', () => toBe.undefined(TESTING_UNDEFINED))
29+
.it('toBe.array', () => toBe.array(TESTING_ARRAY_BIGINT))
30+
.it('toBe.bigint', () => toBe.bigint(TESTING_BIGINT))
31+
.it('toBe.boolean', () => toBe.boolean(TESTING_TRUE))
32+
.it('toBe.class', () => toBe.class(TestingToBeMatchers))
33+
.it('toBe.date', () => toBe.date(new Date()))
34+
.it('toBe.false', () => toBe.false(TESTING_FALSE))
35+
.it('toBe.function', () => toBe.function(TESTING_FUNCTION))
36+
.it('toBe.instance', () => toBe.instance(new TestingClass(), TestingClass))
37+
.it('toBe.key', () => toBe.key(TESTING_STRING))
38+
.it('toBe.null', () => toBe.null(TESTING_NULL))
39+
.it('toBe.number', () => toBe.number(TESTING_NUMBER))
40+
.it('toBe.numberBetween', () => toBe.numberBetween(TESTING_NUMBER, 0, 10304051))
41+
.it('toBe.object', () => toBe.object(TESTING_OBJECT))
42+
.it('toBe.objectKey', () => toBe.objectKey(TESTING_OBJECT, 'key as string'))
43+
.it('toBe.objectKeyIn', () => toBe.objectKeyIn(TESTING_OBJECT, 'key as string'))
44+
.it('toBe.objectKeys', () => toBe.objectKeys(TESTING_OBJECT, ['!@#$%^&*()Company']))
45+
.it('toBe.objectKeysIn', () => toBe.objectKeysIn(TESTING_OBJECT, ['!@#$%^&*()Company']))
46+
.it('toBe.objectSomeKeys', () => toBe.objectSomeKeys(TESTING_OBJECT, ['!@#$%^&*()Company', ['no key']]))
47+
.it('toBe.regexp', () => toBe.regexp(TESTING_REGEXP))
48+
.it('toBe.string', () => toBe.string(TESTING_STRING))
49+
.it('toBe.stringIncludes', () => toBe.stringIncludes(TESTING_STRING, ['Company']))
50+
.it('toBe.stringIncludesSome', () => toBe.stringIncludesSome(TESTING_STRING, ['bla', 'Company']))
51+
.it('toBe.stringOfLength', () => toBe.stringOfLength(TESTING_STRING, 17))
52+
.it('toBe.stringOfLengthBetween', () => toBe.stringOfLengthBetween(TESTING_STRING, 0, 200))
53+
.it('toBe.symbol', () => toBe.symbol(TESTING_SYMBOL_NUMBER))
54+
.it('toBe.true', () => toBe.true(TESTING_TRUE))
55+
.it('toBe.undefined', () => toBe.undefined(TESTING_UNDEFINED))
5556
;
5657
testing
57-
.it('toBe.not.array', () => toBe.not.array(TESTING_BIGINT))
58-
.it('toBe.not.bigint', () => toBe.not.bigint(TESTING_ARRAY_BIGINT))
59-
.it('toBe.not.boolean', () => toBe.not.boolean(TESTING_NOT_DEFINED))
60-
.it('toBe.not.class', () => toBe.not.class(TESTING_CLASS))
61-
.it('toBe.not.date', () => toBe.not.date(TESTING_FUNCTION))
62-
.it('toBe.not.false', () => toBe.not.false(TESTING_NULL))
63-
.it('toBe.not.function', () => toBe.not.function(TESTING_OBJECT))
64-
.it('toBe.not.instance', () => toBe.not.instance(new TestingPerson(), TestingClass))
65-
.it('toBe.not.key', () => toBe.not.key(TESTING_BIGINT))
66-
.it('toBe.not.null', () => toBe.not.null(TESTING_CLASS))
67-
.it('toBe.not.number', () => toBe.not.number(TESTING_STRING))
68-
.it('toBe.not.numberBetween', () => toBe.not.numberBetween(TESTING_NUMBER, {min: 0, max: 10304049}))
69-
.it('toBe.not.object', () => toBe.not.object(null))
70-
.it('toBe.not.objectKey', () => toBe.not.objectKey({} as object, 'key as string'))
71-
.it('toBe.not.objectKeyIn', () => toBe.not.objectKeyIn({} as object, 'key as string'))
72-
.it('toBe.not.objectKeys', () => toBe.not.objectKeys({} as object, ['!@#$%^&*()Company1']))
73-
.it('toBe.not.objectKeysIn', () => toBe.not.objectKeysIn(TESTING_OBJECT, ['!@#$%^&*()Company1']))
74-
.it('toBe.not.objectSomeKeys', () => toBe.not.objectSomeKeys(TESTING_OBJECT, ['!@#$%^&*()Company1', ['no key']]))
75-
.it('toBe.not.regexp', () => toBe.not.regexp(TESTING_UNDEFINED))
76-
.it('toBe.not.string', () => toBe.not.string(TESTING_NUMBER))
77-
.it('toBe.not.stringIncludes', () => toBe.not.stringIncludes(TESTING_STRING, ['Company2']))
78-
.it('toBe.not.stringIncludesSome', () => toBe.not.stringIncludesSome(TESTING_STRING, ['bla', 'Company1']))
79-
.it('toBe.not.stringOfLength', () => toBe.not.stringOfLength(TESTING_STRING, {min: 0, max: 1}))
80-
.it('toBe.not.symbol', () => toBe.not.symbol(TESTING_DATE))
81-
.it('toBe.not.true', () => toBe.not.true(TESTING_NUMBER))
82-
.it('toBe.not.undefined', () => toBe.not.undefined(TESTING_REGEXP))
58+
.it('toBe.not.array', () => toBe.not.array(TESTING_BIGINT))
59+
.it('toBe.not.bigint', () => toBe.not.bigint(TESTING_ARRAY_BIGINT))
60+
.it('toBe.not.boolean', () => toBe.not.boolean(TESTING_NOT_DEFINED))
61+
.it('toBe.not.class', () => toBe.not.class(TESTING_CLASS))
62+
.it('toBe.not.date', () => toBe.not.date(TESTING_FUNCTION))
63+
.it('toBe.not.false', () => toBe.not.false(TESTING_NULL))
64+
.it('toBe.not.function', () => toBe.not.function(TESTING_OBJECT))
65+
.it('toBe.not.instance', () => toBe.not.instance(new TestingPerson(), TestingClass))
66+
.it('toBe.not.key', () => toBe.not.key(TESTING_BIGINT))
67+
.it('toBe.not.null', () => toBe.not.null(TESTING_CLASS))
68+
.it('toBe.not.number', () => toBe.not.number(TESTING_STRING))
69+
.it('toBe.not.numberBetween', () => toBe.not.numberBetween(TESTING_NUMBER, 0, 10304049))
70+
.it('toBe.not.object', () => toBe.not.object(null))
71+
.it('toBe.not.objectKey', () => toBe.not.objectKey({} as object, 'key as string'))
72+
.it('toBe.not.objectKeyIn', () => toBe.not.objectKeyIn({} as object, 'key as string'))
73+
.it('toBe.not.objectKeys', () => toBe.not.objectKeys({} as object, ['!@#$%^&*()Company1']))
74+
.it('toBe.not.objectKeysIn', () => toBe.not.objectKeysIn(TESTING_OBJECT, ['!@#$%^&*()Company1']))
75+
.it('toBe.not.objectSomeKeys', () => toBe.not.objectSomeKeys(TESTING_OBJECT, ['!@#$%^&*()Company1', ['no key']]))
76+
.it('toBe.not.regexp', () => toBe.not.regexp(TESTING_UNDEFINED))
77+
.it('toBe.not.string', () => toBe.not.string(TESTING_NUMBER))
78+
.it('toBe.not.stringIncludes', () => toBe.not.stringIncludes(TESTING_STRING, ['Company2']))
79+
.it('toBe.not.stringIncludesSome', () => toBe.not.stringIncludesSome(TESTING_STRING, ['bla', 'Company1']))
80+
.it('toBe.not.stringOfLength', () => toBe.not.stringOfLength(TESTING_STRING, 18))
81+
.it('toBe.not.stringOfLengthBetween', () => toBe.not.stringOfLengthBetween(TESTING_STRING, 0, 1))
82+
.it('toBe.not.symbol', () => toBe.not.symbol(TESTING_DATE))
83+
.it('toBe.not.true', () => toBe.not.true(TESTING_NUMBER))
84+
.it('toBe.not.undefined', () => toBe.not.undefined(TESTING_REGEXP))
8385
;
8486
});

0 commit comments

Comments
 (0)