diff --git a/.storybook/config.js b/.storybook/config.js index 7c855c67..bbee2891 100644 --- a/.storybook/config.js +++ b/.storybook/config.js @@ -42,12 +42,12 @@ addDecorator((fn, { kind, story }) =>
- test + var script = document.createElement('script'); + script.setAttribute('src', 'https://getuikit.com/migrate.min.js'); + document.body.appendChild(script); + `}>test */} {fn()}
) diff --git a/src/__tests__/Dropdown-test.js b/src/__tests__/Dropdown-test.js index 84526175..e9c7ef5c 100644 --- a/src/__tests__/Dropdown-test.js +++ b/src/__tests__/Dropdown-test.js @@ -1,5 +1,4 @@ import renderer from 'react-test-renderer' - import Dropdown from '../Dropdown' jest.useFakeTimers() diff --git a/src/stories/Button.js b/src/stories/Button.js index 99910861..6f80bd87 100644 --- a/src/stories/Button.js +++ b/src/stories/Button.js @@ -1,4 +1,4 @@ -import { storiesOf } from '@kadira/storybook' +import { storiesOf, action } from '@kadira/storybook' import { Button } from 'uikit-react' // This is to work around: https://github.com/kadirahq/react-storybook-addon-info/issues/26#issuecomment-229029177 @@ -7,10 +7,10 @@ Button.displayName = 'Button' storiesOf('Button', module) .addWithInfo('Basic Usage', '', () => (
-   -   -   -   - +   +   +   +   +
), { header: false, inline: true, propTables: [Button] })