Total Complexity | 4 |
Complexity/F | 1 |
Lines of Code | 13 |
Function Count | 4 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | import join from 'index'; |
||
2 | |||
3 | describe('join', () => { |
||
4 | it('works if input is string', () => { |
||
5 | const result = join('hello', 'world'); |
||
6 | expect(result).toBe('hello world'); |
||
7 | }); |
||
8 | |||
9 | it('would fail if input is not string', () => { |
||
10 | const corrupted = () => join(2, 'yes'); |
||
11 | expect(corrupted).toThrowErrorMatchingSnapshot(); |
||
12 | }); |
||
13 | }); |
||
14 |