Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jan 17, 2025
1 parent f151fef commit 5fe2c12
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions code/renderers/react/src/csf-factories.test.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { test } from 'vitest';
import { expect, test } from 'vitest';

import { Button } from './__test__/Button';
import { defineConfig } from './preview';
Expand All @@ -15,6 +15,10 @@ test('csf factories', () => {
const meta = config.meta({ component: Button, args: { primary: true } });

const MyStory = meta.story({
args: {},
args: {
children: 'Hello world',
},
});

expect(MyStory.annotations.args?.children).toBe('Hello world');
});

0 comments on commit 5fe2c12

Please sign in to comment.