Skip to content

Commit

Permalink
fix: fix tests for new instrument format
Browse files Browse the repository at this point in the history
  • Loading branch information
atanasster committed Mar 15, 2020
1 parent 7caf7d5 commit fc742c9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 48 deletions.
7 changes: 1 addition & 6 deletions core/instrument/test/__snapshots__/csf-toggle.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -57,17 +57,12 @@ export const allToggles = () => {
);
};
",
"stories": Array [
"components-toggle--all-toggles",
],
"title": "Components/Toggle",
},
},
"stories": Object {
"components-toggle--all-toggles": Object {
"allToggles": Object {
"arguments": Array [],
"id": "components-toggle--all-toggles",
"kind": "Components/Toggle",
"loc": Object {
"end": Object {
"column": 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -130,21 +130,16 @@ import { Toggle } from './Toggle';
<Meta title=\\"Storybook/MDX\\" component={Button} />
<Story name=\\"my-story\\" component={Toggle} />",
"stories": Array [
"storybook-mdx--my-story",
],
"title": "Storybook/MDX",
},
},
"stories": Object {
"storybook-mdx--my-story": Object {
"my-story": Object {
"attributes": Object {
"component": "Toggle",
"name": "my-story",
},
"component": "Toggle",
"id": "storybook-mdx--my-story",
"kind": "Storybook/MDX",
"loc": Object {
"end": Object {
"column": 50,
Expand Down
42 changes: 6 additions & 36 deletions core/instrument/test/__snapshots__/mdx-stories.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,11 @@ import Button from '../components/BaseButton';
{props => <Button />}
</Story>
",
"stories": Array [
"storybook-mdx--story-with-props",
],
"title": "Storybook/MDX",
},
},
"stories": Object {
"storybook-mdx--story-with-props": Object {
"story-with-props": Object {
"arguments": Array [
Object {
"loc": Object {
Expand All @@ -113,8 +110,6 @@ import Button from '../components/BaseButton';
"attributes": Object {
"name": "story-with-props",
},
"id": "storybook-mdx--story-with-props",
"kind": "Storybook/MDX",
"loc": Object {
"end": Object {
"column": 57,
Expand Down Expand Up @@ -190,19 +185,14 @@ import Button from '../../components/button-default-arrow-func';
<Button />
</Story>
",
"stories": Array [
"storybook-mdx--smart-story",
],
"title": "Storybook/MDX",
},
},
"stories": Object {
"storybook-mdx--smart-story": Object {
"smart story": Object {
"attributes": Object {
"name": "smart story",
},
"id": "storybook-mdx--smart-story",
"kind": "Storybook/MDX",
"loc": Object {
"end": Object {
"column": 14,
Expand Down Expand Up @@ -262,14 +252,11 @@ import Button from '../components/BaseButton';
{({ name: { first, last }, age }) => <Button />}
</Story>
",
"stories": Array [
"storybook-mdx--story-with-props",
],
"title": "Storybook/MDX",
},
},
"stories": Object {
"storybook-mdx--story-with-props": Object {
"story-with-props": Object {
"arguments": Array [
Object {
"loc": Object {
Expand Down Expand Up @@ -347,8 +334,6 @@ import Button from '../components/BaseButton';
"attributes": Object {
"name": "story-with-props",
},
"id": "storybook-mdx--story-with-props",
"kind": "Storybook/MDX",
"loc": Object {
"end": Object {
"column": 24,
Expand Down Expand Up @@ -409,14 +394,11 @@ import Button from '../components/BaseButton';
<Story name=\\"story-with-props\\">
{({ name, age }) => <Button />}
</Story>",
"stories": Array [
"storybook-mdx--story-with-props",
],
"title": "Storybook/MDX",
},
},
"stories": Object {
"storybook-mdx--story-with-props": Object {
"story-with-props": Object {
"arguments": Array [
Object {
"loc": Object {
Expand Down Expand Up @@ -465,8 +447,6 @@ import Button from '../components/BaseButton';
"attributes": Object {
"name": "story-with-props",
},
"id": "storybook-mdx--story-with-props",
"kind": "Storybook/MDX",
"loc": Object {
"end": Object {
"column": 67,
Expand Down Expand Up @@ -523,14 +503,11 @@ import Button from '../components/BaseButton';
<Story name=\\"story-with-props\\">
{(props, context) => <Button />}
</Story>",
"stories": Array [
"storybook-mdx--story-with-props",
],
"title": "Storybook/MDX",
},
},
"stories": Object {
"storybook-mdx--story-with-props": Object {
"story-with-props": Object {
"arguments": Array [
Object {
"loc": Object {
Expand Down Expand Up @@ -564,8 +541,6 @@ import Button from '../components/BaseButton';
"attributes": Object {
"name": "story-with-props",
},
"id": "storybook-mdx--story-with-props",
"kind": "Storybook/MDX",
"loc": Object {
"end": Object {
"column": 68,
Expand Down Expand Up @@ -622,14 +597,11 @@ import Button from '../components/BaseButton';
<Story name=\\"story-with-props\\">
{({ name: MyName, age }) => <Button />}
</Story>",
"stories": Array [
"storybook-mdx--story-with-props",
],
"title": "Storybook/MDX",
},
},
"stories": Object {
"storybook-mdx--story-with-props": Object {
"story-with-props": Object {
"arguments": Array [
Object {
"loc": Object {
Expand Down Expand Up @@ -678,8 +650,6 @@ import Button from '../components/BaseButton';
"attributes": Object {
"name": "story-with-props",
},
"id": "storybook-mdx--story-with-props",
"kind": "Storybook/MDX",
"loc": Object {
"end": Object {
"column": 46,
Expand Down

0 comments on commit fc742c9

Please sign in to comment.