Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

Commit

Permalink
chore(deps): update dependency @scaleway/ui to v0.145.3 (#233)
Browse files Browse the repository at this point in the history
* chore(deps): update dependency @scaleway/ui to v0.145.3

* fix: tests

Co-authored-by: Renovate Bot <[email protected]>
Co-authored-by: Vincent Audebert <[email protected]>
  • Loading branch information
3 people authored Apr 29, 2022
1 parent 0c546bf commit 7d43ed5
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions src/components/StepperField/__tests__/index.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {})
Expand All @@ -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)
},
Expand Down

0 comments on commit 7d43ed5

Please sign in to comment.