Total Complexity | 3 |
Complexity/F | 1 |
Lines of Code | 24 |
Function Count | 3 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import { isBoolean } from 'tests/entry'; |
||
2 | import { FunctionTester } from '../../utils'; |
||
3 | |||
4 | const tester = new FunctionTester(isBoolean); |
||
5 | |||
6 | suite('CheckTypes: isBoolean'); |
||
7 | |||
8 | test('Positive: isBoolean with boolean input @example', function () { |
||
9 | tester.test(true, true); |
||
10 | tester.test(false, true); |
||
11 | tester.test(new Boolean(true), true); |
||
|
|||
12 | }); |
||
13 | |||
14 | test('Negative: isBoolean with no-boolean input @example', function () { |
||
15 | tester.test('14', false); |
||
16 | tester.test('', false); |
||
17 | tester.test(Number.NaN, false); |
||
18 | tester.test(null, false); |
||
19 | tester.test(undefined, false); |
||
20 | }); |
||
21 | |||
22 | after(async function () { |
||
23 | // console.log('after', this); |
||
24 | }); |
||
25 | |||
26 |