1 | import { fieldStringToArray } from '../utils'; |
||
2 | |||
3 | describe('fieldStringToArray', () => { |
||
4 | describe('output emtpy array if the input is', () => { |
||
5 | it('emtpy string', () => { |
||
6 | const fieldString = ''; |
||
7 | const result = fieldStringToArray(fieldString); |
||
8 | expect(result).toEqual([]); |
||
9 | }); |
||
10 | |||
11 | it('undefined', () => { |
||
12 | const fieldString = undefined; |
||
0 ignored issues
–
show
Unused Code
Comprehensibility
introduced
by
Loading history...
|
|||
13 | const result = fieldStringToArray(fieldString); |
||
14 | expect(result).toEqual([]); |
||
15 | }); |
||
16 | }); |
||
17 | }); |
||
18 |