mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-07 07:21:17 +08:00
Update docs/_snippets/mount-basic.md
Co-authored-by: Yann Braga <yannbf@gmail.com>
This commit is contained in:
parent
530b337561
commit
8fb62c49ef
@ -19,7 +19,7 @@ import MockDate from 'mockdate';
|
||||
// ...
|
||||
|
||||
export const ChristmasUI: Story = {
|
||||
async play({ canvasElement }) {
|
||||
async play({ mount }) {
|
||||
MockDate.set('2024-12-25');
|
||||
// 👇Render the component with the mocked date
|
||||
await mount();
|
||||
|
Loading…
x
Reference in New Issue
Block a user