From 1e062ace7c44d08e5378c58aeb27542cf0405950 Mon Sep 17 00:00:00 2001 From: Timothy Lee Date: Wed, 19 Jun 2024 12:31:50 +1200 Subject: [PATCH] fix: replace incorrect peerDependency (#62) Co-authored-by: Timothy Lee --- package.json | 2 +- src/components/Panel.test.tsx | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index e19fc8e..3c6ed1f 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/components/Panel.test.tsx b/src/components/Panel.test.tsx index a195207..2f89b5c 100644 --- a/src/components/Panel.test.tsx +++ b/src/components/Panel.test.tsx @@ -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 = { [Property in keyof Type]: jest.Mock & Type[Property]; @@ -16,7 +16,7 @@ type CreateMocked = { const createTestApi = (): CreateMocked< Pick > => ({ - on: jest.fn(() => () => {}), + on: jest.fn(() => () => { }), off: jest.fn(), emit: jest.fn(), getQueryParam: jest.fn(() => undefined), @@ -56,7 +56,7 @@ describe('Panel', () => { const testApi = { on: (e, handler) => { handlers[e] = handler; - return () => {}; + return () => { }; }, off: jest.fn(), emit: jest.fn(), @@ -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(), }; @@ -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', () => {