how to test whether an array is not empty in jest code example Example: jest assert if empty array expect(expected).toEqual([])