|
1 | 1 |
|
2 | 2 | import { areString } from '../lib/are-string.func'; |
3 | 3 |
|
4 | | -describe('areString()', () => { |
| 4 | +describe(areString.name, () => { |
5 | 5 |
|
6 | 6 | beforeEach(async () => {}); |
7 | 7 |
|
8 | 8 | beforeEach(() => {}); |
9 | 9 |
|
10 | | - it('is DEFINED', () => { |
11 | | - expect(areString).toBeDefined(); |
12 | | - }); |
| 10 | + it('is DEFINED', () => expect(areString).toBeDefined()); |
13 | 11 |
|
14 | | - it(`string to be TRUE`, () => { |
15 | | - expect(areString('one', 'two', 'three')).toBeTruthy(); |
16 | | - }); |
| 12 | + it(`string to be TRUE`, () => expect(areString('one', 'two', 'three')).toBeTruthy()); |
17 | 13 |
|
18 | | - it(`number to be FALSE`, () => { |
19 | | - expect(areString(1, 2, 3)).toBeFalsy(); |
20 | | - }); |
| 14 | + it(`number to be FALSE`, () => expect(areString(1, 2, 3)).toBeFalsy()); |
21 | 15 |
|
22 | | - it(`boolean to be FALSE`, () => { |
23 | | - expect(areString(true, false, false)).toBeFalsy(); |
24 | | - }); |
| 16 | + it(`boolean to be FALSE`, () => expect(areString(true, false, false)).toBeFalsy()); |
25 | 17 |
|
26 | | - it(`string with number to be FALSE`, () => { |
27 | | - expect(areString('one', 'two', 'three', 3)).toBeFalse(); |
28 | | - }); |
| 18 | + it(`string with number to be FALSE`, () => expect(areString('one', 'two', 'three', 3)).toBeFalse()); |
29 | 19 |
|
30 | | - it(`string with array to be FALSE`, () => { |
31 | | - expect(areString('one', 'two', 'three', ['3'])).toBeFalse(); |
32 | | - }); |
| 20 | + it(`string with array to be FALSE`, () => expect(areString('one', 'two', 'three', ['3'])).toBeFalse()); |
33 | 21 | }); |
0 commit comments