Added withKnobs options test case

This commit is contained in:
Michael Shilman 2018-05-28 18:44:53 -07:00
parent c9693d5180
commit 05c11dde57

View File

@ -186,6 +186,14 @@ storiesOf('Addons|Knobs.withKnobs', module)
knobs: { escapeHTML: false },
});
storiesOf('Addons|Knobs.withKnobs using options', module)
.addDecorator(
withKnobs({
escapeHTML: false,
})
)
.add('accepts options', () => <div>{text('Rendered string', '<h1>Hello</h1>')}</div>);
storiesOf('Addons|Knobs.withKnobsOptions', module)
.addDecorator(
withKnobsOptions({