react testing expect to be an empty array code example Example: jest assert if empty array expect(expected).toEqual([])