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