diff --git a/code/lib/test/template/stories/destructuring-not-transpiled.stories.ts b/code/lib/test/template/stories/destructuring-not-transpiled.stories.ts index 1736c2587a3c..c8768f8c6823 100644 --- a/code/lib/test/template/stories/destructuring-not-transpiled.stories.ts +++ b/code/lib/test/template/stories/destructuring-not-transpiled.stories.ts @@ -6,14 +6,13 @@ export default { args: { label: 'Button' }, }; -async function fn({ destructure }) { - console.log(destructure); -} - // We must not transpile destructuring, to make sure that we can analyze the context properties that are used in play. // See: https://github.com/storybookjs/storybook/discussions/27389 export const DestructureNotTranspiled = { async play() { - await expect(fn.toString()).toBe('async function fn({ destructure }) {}'); + async function a({ b }) { + console.log(b); + } + await expect(a.toString()).toBe('async function a({ b }) {}'); }, };