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('Addons|Links.Href', module).add('log', () => {
hrefTo('Addons|Links.Href', 'log').then(href => action('URL of this story')({ href }));
return <span>See action logger</span>;
});
() => {
hrefTo('React|Links.Href', 'log').then(href => action('URL of this story')(href));
return <span>See action logger</span>;
},
{
export const log = () => {
hrefTo('Addons|Links.Href', 'log').then(href => action('URL of this story')(href));
return <span>See action logger</span>;
};
log.story = {