Skip to content

Commit

Permalink
Added some testcases
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed Oct 29, 2022
1 parent 0ba7eaa commit de1296d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
9 changes: 9 additions & 0 deletions code/addons/docs/template/stories/docspage/basic.stories.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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' },
};
4 changes: 4 additions & 0 deletions code/ui/blocks/src/controls/Boolean.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { BooleanControl } from './Boolean';
export default {
title: 'Controls/Boolean',
component: BooleanControl,
tags: ['docsPage'],
};

const Template = (initialValue?: boolean) => {
Expand All @@ -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);
3 changes: 1 addition & 2 deletions code/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit de1296d

Please sign in to comment.