From a307b218d73b27b47ef917fd86dacd8b61bd0a9d Mon Sep 17 00:00:00 2001 From: jaebradley Date: Wed, 13 Dec 2017 11:52:05 -0500 Subject: [PATCH] fix(input-text): add prop types for the inner Text component fix(snapshot): update Snapshot test(input-text): add test for InputText to fix coverage drop test(input-text): fix test typos --- .../__snapshots__/Storyshots.test.js.snap | 156 +++++++++--------- src/InputText/InputText.test.jsx | 48 ++++++ src/InputText/index.jsx | 21 ++- src/asInput/index.jsx | 26 +-- 4 files changed, 159 insertions(+), 92 deletions(-) create mode 100644 src/InputText/InputText.test.jsx diff --git a/.storybook/__snapshots__/Storyshots.test.js.snap b/.storybook/__snapshots__/Storyshots.test.js.snap index 575adda56f..04aa135b92 100644 --- a/.storybook/__snapshots__/Storyshots.test.js.snap +++ b/.storybook/__snapshots__/Storyshots.test.js.snap @@ -226,15 +226,15 @@ exports[`Storyshots InputSelect basic usage 1`] = ` className="form-group" > @@ -338,15 +338,15 @@ exports[`Storyshots InputSelect separate option groups 1`] = ` className="form-group" > @@ -575,17 +575,17 @@ exports[`Storyshots InputText minimal usage 1`] = ` className="form-group" > @@ -651,17 +651,17 @@ exports[`Storyshots InputText validation with danger theme 1`] = ` className="form-group" > The unique name that identifies you throughout the site. @@ -693,7 +693,7 @@ exports[`Storyshots InputText validation with danger theme 1`] = ` exports[`Storyshots Modal basic usage 1`] = `
Modal title.
@@ -755,7 +755,7 @@ exports[`Storyshots Modal basic usage 1`] = ` exports[`Storyshots Modal configurable buttons 1`] = `
Modal title.
@@ -844,7 +844,7 @@ exports[`Storyshots Modal configurable buttons 1`] = ` exports[`Storyshots Modal configurable buttons that perform actions 1`] = `
Modal title.
@@ -915,7 +915,7 @@ exports[`Storyshots Modal configurable buttons that perform actions 1`] = ` exports[`Storyshots Modal configurable close button 1`] = `
Modal title.
@@ -977,7 +977,7 @@ exports[`Storyshots Modal configurable close button 1`] = ` exports[`Storyshots Modal configurable title and body 1`] = `
Custom title!
@@ -1049,7 +1049,7 @@ exports[`Storyshots Modal configurable title and body 1`] = ` exports[`Storyshots Modal modal invoked via a button 1`] = `
I am the modal!
@@ -1121,7 +1121,7 @@ exports[`Storyshots Modal modal invoked via a button 1`] = ` exports[`Storyshots Modal modal with element body 1`] = `
Modal title.
@@ -1167,17 +1167,17 @@ exports[`Storyshots Modal modal with element body 1`] = ` className="form-group" >
@@ -2072,10 +2072,10 @@ exports[`Storyshots Tabs basic usage 1`] = ` >
  • @@ -2132,9 +2132,9 @@ exports[`Storyshots Tabs basic usage 1`] = `
    @@ -2143,9 +2143,9 @@ exports[`Storyshots Tabs basic usage 1`] = `
    @@ -2161,17 +2161,17 @@ exports[`Storyshots Textarea minimal usage 1`] = ` className="form-group" >