Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
it('should error on invalid args', () => {
// $ExpectError
hrefTo();
// $ExpectError
hrefTo({});
// $ExpectError
hrefTo(true, true);
});
updateHref: async vnode => {
const href = await hrefTo(vnode.attrs.kind, vnode.attrs.story);
// eslint-disable-next-line no-param-reassign
vnode.state.href = href;
m.redraw();
},
view: vnode => (
it('returns a Promised string', () => {
hrefTo('', '').then(result => (result: string));
});
it('should accept string arguments', () => {
hrefTo('', '');
});
storiesOf('Welcome', module).add('to Storybook', () => );
storiesOf('Welcome', module).add('to Storybook', () => );
storiesOf('Welcome', module).add('to Storybook', () => );
.add('With all tabs disabled', () => (
<div label="Tab 1">
</div>
<div label="Tab 2">
</div>
<div label="Tab 3">
</div>
Okay, thanks!
));
storiesOf("Example Stories/link", module).add("link", () => (
<div>
Click here to link to other story
</div>
))
export const templateMethods = () => ({
components: { MyButton },
template: `
<p>
<em>Clicking the button will navigate to another story using the 'addon-links'</em><br>
MyButton rendered in a template + props & methods
</p>`,
methods: {
action: linkTo('Button'),
},
});