Files
headlessui/packages/@headlessui-react/src/index.test.ts
T
Robin Malfait 6e3d496998 feat: add Switch component (#26)
* add Switch component

* add tests to verify that we can click the label to toggle the Switch

* use onKeyUp to prevent triggering the onClick in firefox
2020-10-05 16:47:31 +02:00

10 lines
330 B
TypeScript

import * as TailwindUI from './index'
/**
* Looks a bit of a silly test, however this ensures that we don't accidentally expose something to
* the outside world that we didn't want!
*/
it('should expose the correct components', () => {
expect(Object.keys(TailwindUI)).toEqual(['Transition', 'Menu', 'Listbox', 'Switch'])
})