import * as React from 'react';
import {mount} from 'enzyme';
import {DropdownCreationOptions} from '../DropdownCreationOptions';
import {DropdownModule, DropdownModuleDefinitions} from '../DropdownModule';
import {DropdownProvider} from '../DropdownProvider';
import {DropdownProviderImpl} from './DropdownProviderImpl';
import {TestAdaptor} from '../../../adaptors/framework/_tests/TestAdaptor';

describe('DropdownModuleTesting', () => {
  const testAdaptor: TestAdaptor = new TestAdaptor();
  const dropdownProvider: DropdownProvider = new DropdownProviderImpl();
  const defaultTestModuleProps : DropdownModuleDefinitions.Props = new DropdownModuleDefinitions.Props(
      testAdaptor, dropdownProvider);

  it('Should allow modules to be registered if the name is OK.', () : void => {
      const registeredBeforeMount = testAdaptor.isRegistered(DropdownModuleDefinitions.DROPDOWN_MODULE_NAME);
      expect(registeredBeforeMount).toEqual(false);
      mount(<DropdownModule {...defaultTestModuleProps} />);
  });

  it('Should allow dropdowns to be created by an add-on.', () : void => {

  });

});
