import { IMAGE, LABEL } from '@adalo/constants' import { getOptions } from './reduxConnect' describe('reduxConnect', () => { describe('getOptions', () => { it('should return empty objects for unknown object type', () => { // @ts-expect-error testing invalid input expect(getOptions('unknown')).toEqual({}) }) it.each([IMAGE, LABEL])( 'should return options for known object type: "%s"', objectType => { expect(getOptions(objectType)).toEqual({ areStatesEqual: expect.any(Function), areOwnPropsEqual: expect.any(Function), }) } ) }) })