mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 08:11:53 +08:00
fix tests
This commit is contained in:
parent
0476d11ebd
commit
9eb364ebd9
@ -5,7 +5,6 @@ exports[`Renders CSF2Secondary story 1`] = `
|
|||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
class="storybook-button storybook-button--medium storybook-button--secondary"
|
class="storybook-button storybook-button--medium storybook-button--secondary"
|
||||||
label="Button"
|
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
Children coming from story args!
|
Children coming from story args!
|
||||||
@ -32,7 +31,6 @@ exports[`Renders CSF2StoryWithParamsAndDecorator story 1`] = `
|
|||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
class="storybook-button storybook-button--medium storybook-button--secondary"
|
class="storybook-button storybook-button--medium storybook-button--secondary"
|
||||||
label="Button"
|
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
foo
|
foo
|
||||||
@ -46,7 +44,6 @@ exports[`Renders CSF3Button story 1`] = `
|
|||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
class="storybook-button storybook-button--medium storybook-button--secondary"
|
class="storybook-button storybook-button--medium storybook-button--secondary"
|
||||||
label="Button"
|
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
foo
|
foo
|
||||||
@ -66,7 +63,6 @@ exports[`Renders CSF3ButtonWithRender story 1`] = `
|
|||||||
</p>
|
</p>
|
||||||
<button
|
<button
|
||||||
class="storybook-button storybook-button--medium storybook-button--secondary"
|
class="storybook-button storybook-button--medium storybook-button--secondary"
|
||||||
label="Button"
|
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
foo
|
foo
|
||||||
@ -91,7 +87,6 @@ exports[`Renders CSF3Primary story 1`] = `
|
|||||||
<div>
|
<div>
|
||||||
<button
|
<button
|
||||||
class="storybook-button storybook-button--large storybook-button--primary"
|
class="storybook-button storybook-button--large storybook-button--primary"
|
||||||
label="Button"
|
|
||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
foo
|
foo
|
||||||
|
@ -13,7 +13,6 @@ const { CSF2StoryWithParamsAndDecorator } = composeStories(stories);
|
|||||||
test('returns composed args including default values from argtypes', () => {
|
test('returns composed args including default values from argtypes', () => {
|
||||||
expect(CSF2StoryWithParamsAndDecorator.args).toEqual({
|
expect(CSF2StoryWithParamsAndDecorator.args).toEqual({
|
||||||
...stories.CSF2StoryWithParamsAndDecorator.args,
|
...stories.CSF2StoryWithParamsAndDecorator.args,
|
||||||
label: stories.default.argTypes!.label!.defaultValue,
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user