mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
Delete story that should be part of controls
cc @shilman
This commit is contained in:
parent
cde6a2c4fa
commit
b03ba1313d
@ -52,21 +52,3 @@ export const ArgTypeInference = {
|
||||
});
|
||||
},
|
||||
};
|
||||
|
||||
// Check the inferred controls from the arg types
|
||||
export const ControlInference = {
|
||||
argTypes: {
|
||||
a: { type: 'number' },
|
||||
b: { type: 'string' },
|
||||
c: { type: 'boolean' },
|
||||
d: { type: 'object' },
|
||||
},
|
||||
play: async ({ canvasElement }: PlayFunctionContext) => {
|
||||
await expect(JSON.parse(within(canvasElement).getByTestId('pre').innerHTML)).toMatchObject({
|
||||
a: { control: { type: 'number' } },
|
||||
b: { control: { type: 'text' } },
|
||||
c: { control: { type: 'boolean' } },
|
||||
d: { control: { type: 'object' } },
|
||||
});
|
||||
},
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user