Skip to content

Commit

Permalink
fix: replace incorrect peerDependency (#62)
Browse files Browse the repository at this point in the history
Co-authored-by: Timothy Lee <[email protected]>
  • Loading branch information
tetslee and tetslee committed Jun 19, 2024
1 parent 57a127d commit 1e062ac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"typescript": "^4.9.5"
},
"peerDependencies": {
"@storybook/api": "^8.0.0",
"@storybook/manager-api": "^8.0.0",
"@storybook/components": "^8.0.0",
"@storybook/core-events": "^8.0.0",
"@storybook/theming": "^8.0.0",
Expand Down
10 changes: 5 additions & 5 deletions src/components/Panel.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { ThemeProvider, themes, convert } from '@storybook/theming';
import Panel, { DEFAULT_GROUP_ID } from './Panel';
import { CHANGE, SET } from '../shared';
import PropForm from './PropForm';
import { API } from '@storybook/api';
import { API } from '@storybook/manager-api';

type CreateMocked<Type> = {
[Property in keyof Type]: jest.Mock & Type[Property];
Expand All @@ -16,7 +16,7 @@ type CreateMocked<Type> = {
const createTestApi = (): CreateMocked<
Pick<API, 'on' | 'off' | 'emit' | 'getQueryParam' | 'setQueryParams'>
> => ({
on: jest.fn(() => () => {}),
on: jest.fn(() => () => { }),
off: jest.fn(),
emit: jest.fn(),
getQueryParam: jest.fn(() => undefined),
Expand Down Expand Up @@ -56,7 +56,7 @@ describe('Panel', () => {
const testApi = {
on: (e, handler) => {
handlers[e] = handler;
return () => {};
return () => { };
},
off: jest.fn(),
emit: jest.fn(),
Expand Down Expand Up @@ -99,7 +99,7 @@ describe('Panel', () => {
const testApi = {
getQueryParam: jest.fn(),
setQueryParams: jest.fn(() => undefined),
on: jest.fn(() => () => {}),
on: jest.fn(() => () => { }),
off: jest.fn(),
emit: jest.fn(),
};
Expand All @@ -126,7 +126,7 @@ describe('Panel', () => {
emit: jest.fn(),
getQueryParam: jest.fn(() => undefined),
setQueryParams: jest.fn(),
on: jest.fn(() => () => {}),
on: jest.fn(() => () => { }),
};

it.skip('should have no tabs when there are no groupIds', () => {
Expand Down

0 comments on commit 1e062ac

Please sign in to comment.