From 7d43ed5bedebc89a0c5f6b9e3040bf354554d39e Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 29 Apr 2022 10:08:32 +0200 Subject: [PATCH] chore(deps): update dependency @scaleway/ui to v0.145.3 (#233) * chore(deps): update dependency @scaleway/ui to v0.145.3 * fix: tests Co-authored-by: Renovate Bot Co-authored-by: Vincent Audebert --- package.json | 4 ++-- pnpm-lock.yaml | 14 +++++++------- .../StepperField/__tests__/index.spec.tsx | 5 +++-- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 8ef9646e..f2a9ad4a 100644 --- a/package.json +++ b/package.json @@ -107,7 +107,7 @@ "peerDependencies": { "@emotion/react": "11.9.0", "@emotion/styled": "11.8.1", - "@scaleway/ui": "0.145.0", + "@scaleway/ui": "0.145.3", "final-form": "4.20.6", "final-form-arrays": "3.0.2", "final-form-focus": "1.1.2", @@ -183,7 +183,7 @@ }, "dependencies": { "@babel/runtime": "7.17.9", - "@scaleway/ui": "0.145.0", + "@scaleway/ui": "0.145.3", "final-form": "4.20.6", "final-form-arrays": "3.0.2", "final-form-focus": "1.1.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index eb54fe8a..30ff1173 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -21,7 +21,7 @@ specifiers: '@rollup/plugin-url': 6.1.0 '@scaleway/eslint-config-react': 3.4.19 '@scaleway/jest-helpers': 1.2.4 - '@scaleway/ui': 0.145.0 + '@scaleway/ui': 0.145.3 '@semantic-release/changelog': 6.0.1 '@semantic-release/commit-analyzer': 9.0.2 '@semantic-release/git': 10.0.1 @@ -75,7 +75,7 @@ specifiers: dependencies: '@babel/runtime': 7.17.9 - '@scaleway/ui': 0.145.0_3782ad821661fd4316bcd740d95f80f1 + '@scaleway/ui': 0.145.3_3782ad821661fd4316bcd740d95f80f1 final-form: 4.20.6 final-form-arrays: 3.0.2_final-form@4.20.6 final-form-focus: 1.1.2_final-form@4.20.6 @@ -3010,8 +3010,8 @@ packages: resolution: {integrity: sha512-vEL2RegTjZx/3ZEgVgWvNfxsXUZZ0ieiheNva+mXbHCrWc6f0CvntMezf8dONVajLC4Wi6V7Fo2Y9lhnJbvNow==} dev: false - /@scaleway/ui/0.145.0_3782ad821661fd4316bcd740d95f80f1: - resolution: {integrity: sha512-mAYD8oJUmmZGVxR7qhvC6YCugDr6SAJT44I/jDDE9T5Xyc5d798j9HOUFi7+0XK5FfWuY3SGF3kSbWhTGHzEQw==} + /@scaleway/ui/0.145.3_3782ad821661fd4316bcd740d95f80f1: + resolution: {integrity: sha512-JY+zbBM4c8V9d/3LRzbHbrbxAqWTOOEcrbWiLGPycwIKz7tG1+5ah+0t2jmshu5d1l2clyY2bD63lyMr9pz3xQ==} engines: {node: '>=14.x', pnpm: '>=6'} os: [darwin, linux] peerDependencies: @@ -3031,7 +3031,7 @@ packages: '@nivo/scales': 0.79.0 '@scaleway/random-name': 3.0.2 '@types/intl-tel-input': 17.0.4 - '@types/react-datepicker': 4.4.0_react@17.0.2 + '@types/react-datepicker': 4.4.1_react@17.0.2 '@xstyled/emotion': 2.5.0_f4211c0e3b1e72bd8df03648eda816c7 deepmerge: 4.2.2 intl-tel-input: 17.0.16 @@ -5187,8 +5187,8 @@ packages: resolution: {integrity: sha512-FGa1F62FT09qcrueBA6qYTrJPVDzah9a+493+o2PCXsesWHIn27G98TsSMs3WPNbZIEj4+VJf6saSFpvD+3Zsw==} dev: true - /@types/react-datepicker/4.4.0_react@17.0.2: - resolution: {integrity: sha512-wzmevaO51rLFwSZd5HSqBU0aAvZlRRkj6QhHqj0jfRDSKnN3y5IKXyhgxPS8R0LOWOtjdpirI1DBryjnIp/7gA==} + /@types/react-datepicker/4.4.1_react@17.0.2: + resolution: {integrity: sha512-M8+hzwj+bpuwxC82z35NxkD3sqMl/vVXTs6xjPAsYqjucVXFpY1DK6ETKgICZE7YpuPYpf2OYF2OVZ5E7R42rA==} dependencies: '@popperjs/core': 2.11.2 '@types/react': 17.0.38 diff --git a/src/components/StepperField/__tests__/index.spec.tsx b/src/components/StepperField/__tests__/index.spec.tsx index 5c9f0017..6d26cab1 100644 --- a/src/components/StepperField/__tests__/index.spec.tsx +++ b/src/components/StepperField/__tests__/index.spec.tsx @@ -32,7 +32,7 @@ describe('StepperField', () => { }, )) - test('should trigger events correctly', () => { + test.only('should trigger events correctly', () => { const onFocus = jest.fn(() => {}) const onChange = jest.fn(() => {}) const onBlur = jest.fn(() => {}) @@ -50,8 +50,9 @@ describe('StepperField', () => { const input = getByLabelText('Input') input.focus() expect(onFocus).toBeCalledTimes(1) + // clicking inside field should not trigger any change input.click() - expect(onChange).toBeCalledTimes(2) + expect(onChange).toBeCalledTimes(0) input.blur() expect(onBlur).toBeCalledTimes(1) },