From 4f194bc3f9c4ca53d259bceb9c91ebfdc7dbc8a6 Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Tue, 21 Mar 2023 12:25:17 +0100 Subject: [PATCH] Fix typo in docs, fix same typos in internal code --- cypress/integration/parallax.spec.js | 4 ++-- docs/app/data/fixtures.tsx | 2 +- packages/core/src/hooks/useSpringValue.test.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/cypress/integration/parallax.spec.js b/cypress/integration/parallax.spec.js index ede8cfd9e4..e9f3b9373c 100644 --- a/cypress/integration/parallax.spec.js +++ b/cypress/integration/parallax.spec.js @@ -9,7 +9,7 @@ describe('Parallax - vertical', () => { }) it('should translate layers as expected', () => { - // intial snapshot + // initial snapshot console.log(HEIGHT, WIDTH) cy.findByTestId('container').matchImageSnapshot('vertical #1', { @@ -100,7 +100,7 @@ describe('Parallax - horizontal', () => { }) it('should translate layers as expected', () => { - // intial snapshot + // initial snapshot cy.findByTestId('container').matchImageSnapshot('horizontal #1', { clip: { x: 0, y: 0, width: WIDTH, height: HEIGHT }, }) diff --git a/docs/app/data/fixtures.tsx b/docs/app/data/fixtures.tsx index b3738e5b8c..a6664333c7 100644 --- a/docs/app/data/fixtures.tsx +++ b/docs/app/data/fixtures.tsx @@ -596,7 +596,7 @@ export const TRANSITION_CONFIG_DATA: CellData[][] = [ null, ], [ - 'intial', + 'initial', { label: 'object | function', content: {`(item: Item, index: number) => object`}, diff --git a/packages/core/src/hooks/useSpringValue.test.ts b/packages/core/src/hooks/useSpringValue.test.ts index e97f657da4..ec6da681c1 100644 --- a/packages/core/src/hooks/useSpringValue.test.ts +++ b/packages/core/src/hooks/useSpringValue.test.ts @@ -128,7 +128,7 @@ describe('useSpringValue', () => { expect(spring2Frames).not.toEqual(spring1Frames) }) - it('should not update the intial value on rerender', () => { + it('should not update the initial value on rerender', () => { const { result, rerender } = renderHook(props => useSpringValue(props), { initialProps: 0, })