+
+ {['light', 'dark', 'brand'].map((type: 'light' | 'dark' | 'brand') => {
+ return (
+
+ );
+ })}
+
+ ,
+ document.getElementById('container')
+ );
+}
+
+window.renderDemo = function (lang = 'en-us') {
+ render(i18nMap[lang], lang);
+};
+
+renderDemo();
+
+initDemo('shell');
diff --git a/components/shell/__tests__/a11y-spec.js b/components/shell/__tests__/a11y-spec.tsx
similarity index 69%
rename from components/shell/__tests__/a11y-spec.js
rename to components/shell/__tests__/a11y-spec.tsx
index 64c886398c..9030c61602 100644
--- a/components/shell/__tests__/a11y-spec.js
+++ b/components/shell/__tests__/a11y-spec.tsx
@@ -1,36 +1,27 @@
import React from 'react';
-import Enzyme from 'enzyme';
-import Adapter from 'enzyme-adapter-react-16';
-import { unmount, testReact } from '../../util/__tests__/legacy/a11y/validate';
import Shell from '../index';
import Search from '../../search/index';
import '../style';
import '../../search/style';
import './index.scss';
+import { testReact } from '../../util/__tests__/a11y/validate';
-Enzyme.configure({ adapter: new Adapter() });
-
-/* eslint-disable no-undef, react/jsx-filename-extension */
describe('Shell A11y', () => {
- let wrapper;
-
- afterEach(() => {
- if (wrapper) {
- wrapper.unmount();
- wrapper = null;
- }
- unmount();
- });
-
it('should not have any violations', async () => {
- wrapper = await testReact(
+ await testReact(