Added some testcases

This commit is contained in:
Michael Shilman 2022-10-29 21:24:13 +08:00
parent 4a9fc915d1
commit 2c4c25d692
3 changed files with 14 additions and 2 deletions

View File

@ -7,15 +7,24 @@ export default {
parameters: { chromatic: { disable: true } },
};
/**
* A basic button
*/
export const Basic = {
args: { label: 'Basic' },
};
/**
* Won't show up in DocsPage
*/
export const Disabled = {
args: { label: 'Disabled in DocsPage' },
parameters: { docs: { disable: true } },
};
/**
* Another button, just to show multiple stories
*/
export const Another = {
args: { label: 'Another' },
};

View File

@ -4,6 +4,7 @@ import { BooleanControl } from './Boolean';
export default {
title: 'Controls/Boolean',
component: BooleanControl,
tags: ['docsPage'],
};
const Template = (initialValue?: boolean) => {
@ -20,4 +21,7 @@ export const True = () => Template(true);
export const False = () => Template(false);
/**
* When no value is set on the control
*/
export const Undefined = () => Template(undefined);

View File

@ -2119,7 +2119,7 @@ __metadata:
languageName: node
linkType: hard
"@babel/template@npm:^7.12.11, @babel/template@npm:^7.16.7, @babel/template@npm:^7.18.10, @babel/template@npm:^7.3.3, @babel/template@npm:^7.4.0, @babel/template@npm:^7.7.0, @babel/template@npm:^7.8.6":
"@babel/template@npm:^7.16.7, @babel/template@npm:^7.18.10, @babel/template@npm:^7.3.3, @babel/template@npm:^7.4.0, @babel/template@npm:^7.7.0, @babel/template@npm:^7.8.6":
version: 7.18.10
resolution: "@babel/template@npm:7.18.10"
dependencies:
@ -6644,7 +6644,6 @@ __metadata:
dependencies:
"@babel/generator": ^7.12.11
"@babel/parser": ^7.12.11
"@babel/template": ^7.12.11
"@babel/traverse": ^7.12.11
"@babel/types": ^7.12.11
"@storybook/csf": next