From e7fdc2f8afc5e905b74a131e468098b44c5b6607 Mon Sep 17 00:00:00 2001 From: Miroslav Stastny Date: Thu, 29 Nov 2018 11:28:47 +0100 Subject: [PATCH 1/2] fix(build): Fix invalid whatInput import --- src/lib/isFromKeyboard.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/isFromKeyboard.ts b/src/lib/isFromKeyboard.ts index ed40b8ea79..6e150bb360 100644 --- a/src/lib/isFromKeyboard.ts +++ b/src/lib/isFromKeyboard.ts @@ -1,4 +1,4 @@ -import whatInput from 'what-input' +import * as whatInput from 'what-input' import tsUtils from './typescriptUtils' export interface State { isFromKeyboard: boolean From b01f660dbb7acc66103f4c080712bbb53613e7f8 Mon Sep 17 00:00:00 2001 From: Miroslav Stastny Date: Thu, 29 Nov 2018 11:39:02 +0100 Subject: [PATCH 2/2] fix UT, update changelog --- CHANGELOG.md | 1 + test/specs/lib/keyboardFocusMock.ts | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 805932d460..c925863ecd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ### Fixes - Prevent blind props forwarding if `Input`'s wrapper is defined as React element @kuzhelov ([#453](https://github.com/stardust-ui/react/pull/453)) +- Fix invalid whatInput import @miroslavstastny ([#541](https://github.com/stardust-ui/react/pull/541)) ### Features - 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)) diff --git a/test/specs/lib/keyboardFocusMock.ts b/test/specs/lib/keyboardFocusMock.ts index 7965ecff72..6dce0391b7 100644 --- a/test/specs/lib/keyboardFocusMock.ts +++ b/test/specs/lib/keyboardFocusMock.ts @@ -1,9 +1,7 @@ export function initKeyboardFocusMock() { jest.mock('what-input', () => { return { - default: { - ask: jest.fn(), - }, + ask: jest.fn(), } }) }