Skip to content
This repository was archived by the owner on Mar 4, 2020. It is now read-only.

Commit 91638d1

Browse files
fix(lib): Fix invalid whatInput import (#541)
* fix(build): Fix invalid whatInput import * fix UT, update changelog
1 parent 65298ca commit 91638d1

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
1919

2020
### Fixes
2121
- Prevent blind props forwarding if `Input`'s wrapper is defined as React element @kuzhelov ([#453](https://github.com/stardust-ui/react/pull/453))
22+
- Fix invalid whatInput import @miroslavstastny ([#541](https://github.com/stardust-ui/react/pull/541))
2223

2324
### Features
2425
- Add all default size Teams icons processed & ready to be consumed by Stardust as needed @codepretty ([#478](https://github.com/stardust-ui/react/pull/478))

src/lib/isFromKeyboard.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import whatInput from 'what-input'
1+
import * as whatInput from 'what-input'
22
import tsUtils from './typescriptUtils'
33
export interface State {
44
isFromKeyboard: boolean
Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
export function initKeyboardFocusMock() {
22
jest.mock('what-input', () => {
33
return {
4-
default: {
5-
ask: jest.fn(),
6-
},
4+
ask: jest.fn(),
75
}
86
})
97
}

0 commit comments

Comments
 (0)