We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f41bd3f commit 58218c1Copy full SHA for 58218c1
src/index.js
@@ -7,9 +7,9 @@ export default makeDecorator({
7
parameterName: 'mockData',
8
// This means don't run this decorator if the notes decorator is not set
9
skipIfNoParametersOrOptions: true,
10
- wrapper: (getStory, context, { parameters }) => {
+ wrapper: (getStory, context, { options, parameters }) => {
11
const channel = addons.getChannel();
12
- faker.makeInitialRequestMap(parameters);
+ faker.makeInitialRequestMap(options.concat(parameters));
13
14
// Our simple API above simply sets the notes parameter to a string,
15
// which we send to the channel
0 commit comments