import { head } from"../../utility/array/head";describe('head tests: ', () => {test('head should return the first field that was in origin array', () => {constreceived:number[] = [1,2,3,4,5];constexpected=1;constresult=head<number>(received);expect(result).toBe(expected); });test('head should return undefined when receive an empty array', () => {constreceived:any[] = [];constexpected=undefined;constresult=head<any>(received);expect(result).toBe(expected); });});