Skip to content

Commit

Permalink
FIX unittests
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jul 26, 2017
1 parent d787a62 commit 93414cd
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addons/notes/src/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import addons from '@storybook/addons';

import { ReactDecorator } from './react';
import ReactDecorator from './react';

const wrapper = ({ notes }) => {
const channel = addons.getChannel();
Expand Down
2 changes: 1 addition & 1 deletion addons/notes/src/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import PropTypes from 'prop-types';
import addons from '@storybook/addons';

export class WithNotes extends React.Component {
export default class WithNotes extends React.Component {
render() {
const { children, notes } = this.props;
const channel = addons.getChannel();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ exports[`Storyshots Button with knobs 1`] = `
</p>
<p>
My birthday is:
2017-1-20
2017-01-19T23:00:00.000Z
</p>
<p>
My wallet contains: $
Expand Down
2 changes: 1 addition & 1 deletion examples/cra-kitchen-sink/src/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ storiesOf('Button', module)
{intro}
</p>
<p>
My birthday is: {new Date(birthday).toLocaleDateString()}
My birthday is: {new Date(birthday).toISOString()}
</p>
<p>
My wallet contains: ${dollars.toFixed(2)}
Expand Down
2 changes: 1 addition & 1 deletion examples/vue-kitchen-sink/src/stories/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ storiesOf('Addon Knobs', module)
template: `
<div style="border:2px dotted ${colour}; padding: 8px 22px; border-radius: 8px">
<h1>My name is ${name},</h1>
<h3>today is ${new Date(today).toLocaleDateString()}</h3>
<h3>today is ${new Date(today).toISOString()}</h3>
<p>${stockMessage}</p>
<p>Also, I have:</p>
<ul>
Expand Down

0 comments on commit 93414cd

Please sign in to comment.