Skip to content

Commit

Permalink
chore(core): storybook code format
Browse files Browse the repository at this point in the history
- corrects single line code formatting

Signed-off-by: Cory Rylan <splintercode.cb@gmail.com>
  • Loading branch information
coryrylan authored and mathisscott committed Feb 8, 2022
1 parent 6662c7f commit 137f991
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/core/.storybook/preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ export const parameters = {
let storySource = storyContext.originalStoryFn.toString().split('\n');

// remove function wrapper
storySource.shift();
storySource.pop();
if (storySource.length > 2) {
storySource.shift();
storySource.pop();
}
storySource[0] = storySource[0].replace('return html`', '').trim();
storySource[storySource.length - 1] = storySource[storySource.length - 1].replace('`;', '');

Expand Down

0 comments on commit 137f991

Please sign in to comment.