From 3ebe4f7278775dab737ac063a9520a96e396ef46 Mon Sep 17 00:00:00 2001 From: goodactive Date: Fri, 19 Apr 2024 18:33:04 +0800 Subject: [PATCH] chore: remove repetitive words Signed-off-by: goodactive --- MIGRATION.md | 2 +- code/lib/preview-api/src/modules/store/csf/stepRunners.ts | 2 +- .../src/components/notifications/NotificationItem.stories.tsx | 2 +- scripts/release/__tests__/ensure-next-ahead.test.ts | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MIGRATION.md b/MIGRATION.md index eecaf94950a2..9fd48608203c 100644 --- a/MIGRATION.md +++ b/MIGRATION.md @@ -5049,7 +5049,7 @@ SB 5.1.0 added [support for project root `babel.config.js` files](https://github ### React native server -Storybook 5.1 contains a major overhaul of `@storybook/react-native` as compared to 4.1 (we didn't ship a version of RN in 5.0 due to timing constraints). Storybook for RN consists of an an UI for browsing stories on-device or in a simulator, and an optional webserver which can also be used to browse stories and web addons. +Storybook 5.1 contains a major overhaul of `@storybook/react-native` as compared to 4.1 (we didn't ship a version of RN in 5.0 due to timing constraints). Storybook for RN consists of an UI for browsing stories on-device or in a simulator, and an optional webserver which can also be used to browse stories and web addons. 5.1 refactors both pieces: diff --git a/code/lib/preview-api/src/modules/store/csf/stepRunners.ts b/code/lib/preview-api/src/modules/store/csf/stepRunners.ts index 2a5b5be88e17..efc2d583bf31 100644 --- a/code/lib/preview-api/src/modules/store/csf/stepRunners.ts +++ b/code/lib/preview-api/src/modules/store/csf/stepRunners.ts @@ -3,7 +3,7 @@ import type { Renderer, StepRunner } from '@storybook/types'; /** * Compose step runners to create a single step runner that applies each step runner in order. * - * A step runner is a a function that takes a defined step: `step('label', () => { ... })` + * A step runner is a function that takes a defined step: `step('label', () => { ... })` * and runs it. The prototypical example is from `@storybook/addon-interactions` where the * step runner will decorate all instrumented code inside the step with information about the * label. diff --git a/code/ui/manager/src/components/notifications/NotificationItem.stories.tsx b/code/ui/manager/src/components/notifications/NotificationItem.stories.tsx index af4c7fcc8e57..a3b87acdcf52 100644 --- a/code/ui/manager/src/components/notifications/NotificationItem.stories.tsx +++ b/code/ui/manager/src/components/notifications/NotificationItem.stories.tsx @@ -218,7 +218,7 @@ export const BookIconLongSubHeadline: Story = { content: { headline: 'Storybook has a book icon!', subHeadline: - 'Find out more! by clicking on on buttons and downloading some applications. Find out more! by clicking on buttons and downloading some applications', + 'Find out more! by clicking on buttons and downloading some applications. Find out more! by clicking on buttons and downloading some applications', }, icon: , link: undefined, diff --git a/scripts/release/__tests__/ensure-next-ahead.test.ts b/scripts/release/__tests__/ensure-next-ahead.test.ts index d7a3f99c03b7..0b21ebee8447 100644 --- a/scripts/release/__tests__/ensure-next-ahead.test.ts +++ b/scripts/release/__tests__/ensure-next-ahead.test.ts @@ -76,7 +76,7 @@ describe('Ensure next ahead', () => { expect(bumpVersion.run).toHaveBeenCalledWith({ exact: '2.1.0-alpha.0' }); }); - it('should bump version to 2.1.0-alpha.0 when main is 2.0.0 and and next is 2.0.0-rc.10', async () => { + it('should bump version to 2.1.0-alpha.0 when main is 2.0.0 and next is 2.0.0-rc.10', async () => { fsExtra.__setMockFiles({ [CODE_PACKAGE_JSON_PATH]: JSON.stringify({ version: '2.0.0-rc.10' }), });