Skip to content

Commit

Permalink
Try and make decorator story more consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
tmeasday committed May 30, 2023
1 parent 97e02e7 commit 6fd67da
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion code/lib/preview-api/template/stories/decorators.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,13 @@ export const Hooks = {

await channel.emit(UPDATE_STORY_ARGS, {
storyId: id,
updatedArgs: { condition: !args.condition },
updatedArgs: { condition: false },
});
await new Promise((resolve) => channel.once(STORY_ARGS_UPDATED, resolve));

await channel.emit(UPDATE_STORY_ARGS, {
storyId: id,
updatedArgs: { condition: true },
});
await new Promise((resolve) => channel.once(STORY_ARGS_UPDATED, resolve));
},
Expand Down

0 comments on commit 6fd67da

Please sign in to comment.