diff --git a/CHANGELOG.md b/CHANGELOG.md index c94e1a849f6..ffd1a2e7c31 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,7 @@ - Added `initialFocus` prop typedefs to `EuiModal` and `EuiPopover` ([#1410](https://github.com/elastic/eui/pull/1410)) - Updated `gisApp` icon ([#1413](https://github.com/elastic/eui/pull/1413)) - Added `isAutoRefreshOnly` prop to `EuiSuperDatePicker` ([#1412](https://github.com/elastic/eui/pull/1412)) +- Migrate remaining files in `accessiblity/` to TS ([#1408](https://github.com/elastic/eui/pull/1408)) **Bug fixes** diff --git a/src/components/accessibility/__snapshots__/keyboard_accessible.test.js.snap b/src/components/accessibility/__snapshots__/keyboard_accessible.test.tsx.snap similarity index 100% rename from src/components/accessibility/__snapshots__/keyboard_accessible.test.js.snap rename to src/components/accessibility/__snapshots__/keyboard_accessible.test.tsx.snap diff --git a/src/components/accessibility/index.js b/src/components/accessibility/index.ts similarity index 100% rename from src/components/accessibility/index.js rename to src/components/accessibility/index.ts diff --git a/src/components/accessibility/keyboard_accessible.test.js b/src/components/accessibility/keyboard_accessible.test.js deleted file mode 100644 index 6d692322f0e..00000000000 --- a/src/components/accessibility/keyboard_accessible.test.js +++ /dev/null @@ -1,206 +0,0 @@ -import React from 'react'; -import { - render, - shallow, -} from 'enzyme'; -import sinon from 'sinon'; - -import { EuiKeyboardAccessible } from './keyboard_accessible'; - -import { keyCodes } from '../../services'; - -describe('EuiKeyboardAccessible', () => { - describe('throws an error', () => { - let consoleStub; - - beforeEach(() => { - consoleStub = sinon.stub(console, 'error'); - }); - - afterEach(() => { - console.error.restore(); // eslint-disable-line no-console - }); - - test(`when there's no child`, () => { - const component = ( // eslint-disable-line no-unused-vars - - ); - - expect(consoleStub.calledOnce).toBe(true); - expect(consoleStub.getCall(0).args[0]).toContain( - `needs to wrap an element with which the user interacts.` - ); - }); - - test('when the child is a button', () => { - const component = ( // eslint-disable-line no-unused-vars - -