toBe jest code example
Example 1: jest assert if empty array
expect(expected).toEqual([])
Example 2: expect any function jest
expect(something).toEqual(expect.any(Function))
expect(expected).toEqual([])
expect(something).toEqual(expect.any(Function))