Add jest tests for twenty-front (#2983)
* Add jest tests for twenty-front Co-authored-by: v1b3m <vibenjamin6@gmail.com> * Fix tests --------- Co-authored-by: gitstart-twenty <gitstart-twenty@users.noreply.github.com> Co-authored-by: v1b3m <vibenjamin6@gmail.com> Co-authored-by: Charles Bochet <charles@twenty.com>
This commit is contained in:
@ -0,0 +1,7 @@
|
||||
import { arrayToChunks } from '~/utils/array/array-to-chunks';
|
||||
|
||||
describe('arrayToChunks', () => {
|
||||
it('should split an array into subarrays of a given size', () => {
|
||||
expect(arrayToChunks([1, 2, 3, 4, 5], 2)).toEqual([[1, 2], [3, 4], [5]]);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user