Skip to content

Commit

Permalink
Merge pull request #2376 from sandinosaso/documentation/addon-jest
Browse files Browse the repository at this point in the history
Fix small typos on Jest addon documentation.
  • Loading branch information
ndelangen committed Nov 26, 2017
2 parents 417afe1 + cdf8cbf commit 36361e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions addons/jest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ In your `story.js`

```js
import jestTestResults from '../.jest-test-results.json';
import withTests from '@storybook/addon-jest';
import { withTests } from '@storybook/addon-jest';

storiesOf('MyComponent', module)
.addDecorator(withTests(jestTestResults, { filesExt: '.test.js' })('MyComponent', 'MyOtherComponent'))
Expand All @@ -91,7 +91,7 @@ Or in order to avoid importing `.jest-test-results.json` in each story, you can

```js
import jestTestResults from '../.jest-test-results.json';
import withTests from '@storybook/addon-jest';
import { withTests } from '@storybook/addon-jest';

export default withTests(jestTestResults, {
filesExt: '.test.js',
Expand Down
2 changes: 1 addition & 1 deletion addons/jest/src/components/Panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ const Content = glamorous(({ tests, className }) => (
<div className={className}>
{tests.map(({ name, result }) => {
if (!result) {
return <NoTests>This story has tests configures, but no file not found</NoTests>;
return <NoTests>This story has tests configured, but no file was found</NoTests>;
}

const successNumber = result.assertionResults.filter(({ status }) => status === 'passed')
Expand Down

0 comments on commit 36361e7

Please sign in to comment.