@@ -21,31 +21,31 @@ describe('Input', () => {
2121 expect ( wrapper . type ( ) ) . toBe ( 'textarea' ) ;
2222 } ) ;
2323
24- it ( 'should render with "p" tag when static prop is truthy' , ( ) => {
25- const wrapper = shallow ( < Input type = "select" static /> ) ;
24+ it ( 'should render with "p" tag when plaintext prop is truthy' , ( ) => {
25+ const wrapper = shallow ( < Input type = "select" plaintext /> ) ;
2626
2727 expect ( wrapper . type ( ) ) . toBe ( 'p' ) ;
2828 } ) ;
2929
30- it ( 'should render with "form-control-static " class when static prop is truthy' , ( ) => {
31- const wrapper = shallow ( < Input type = "select" static /> ) ;
30+ it ( 'should render with "form-control-plaintext " class when plaintext prop is truthy' , ( ) => {
31+ const wrapper = shallow ( < Input type = "select" plaintext /> ) ;
3232
33- expect ( wrapper . hasClass ( 'form-control-static ' ) ) . toBe ( true ) ;
33+ expect ( wrapper . hasClass ( 'form-control-plaintext ' ) ) . toBe ( true ) ;
3434 } ) ;
3535
36- it ( 'should not render with "form-control" class when static prop is truthy' , ( ) => {
37- const wrapper = shallow ( < Input type = "select" static /> ) ;
36+ it ( 'should not render with "form-control" class when plaintext prop is truthy' , ( ) => {
37+ const wrapper = shallow ( < Input type = "select" plaintext /> ) ;
3838
3939 expect ( wrapper . hasClass ( 'form-control' ) ) . toBe ( false ) ;
4040 } ) ;
4141
42- it ( 'should render with custom tag when static prop is truthy and tag is provided' , ( ) => {
43- const wrapper = shallow ( < Input type = "select" static tag = "div" /> ) ;
42+ it ( 'should render with custom tag when plaintext prop is truthy and tag is provided' , ( ) => {
43+ const wrapper = shallow ( < Input type = "select" plaintext tag = "div" /> ) ;
4444
4545 expect ( wrapper . type ( ) ) . toBe ( 'div' ) ;
4646 } ) ;
4747
48- it ( 'should not render with custom tag when static prop is not truthy and tag is provided' , ( ) => {
48+ it ( 'should not render with custom tag when plaintext prop is not truthy and tag is provided' , ( ) => {
4949 const wrapper = shallow ( < Input type = "select" tag = "div" /> ) ;
5050
5151 expect ( wrapper . type ( ) ) . toBe ( 'select' ) ;
@@ -106,43 +106,51 @@ describe('Input', () => {
106106 expect ( wrapper . hasClass ( 'form-control' ) ) . toBe ( true ) ;
107107 } ) ;
108108
109- it ( 'should not render with "form-control-file" nor "form-control-static " nor "form-check-input" class by default' , ( ) => {
109+ it ( 'should not render with "form-control-file" nor "form-control-plaintext " nor "form-check-input" class by default' , ( ) => {
110110 const wrapper = shallow ( < Input /> ) ;
111111
112112 expect ( wrapper . hasClass ( 'form-control-file' ) ) . toBe ( false ) ;
113- expect ( wrapper . hasClass ( 'form-control-static ' ) ) . toBe ( false ) ;
113+ expect ( wrapper . hasClass ( 'form-control-plaintext ' ) ) . toBe ( false ) ;
114114 expect ( wrapper . hasClass ( 'form-check-input' ) ) . toBe ( false ) ;
115115 } ) ;
116116
117- it ( 'should not render with "form-control" nor "form-control-static " nor "form-check-input" class when type is file' , ( ) => {
117+ it ( 'should not render with "form-control" nor "form-control-plaintext " nor "form-check-input" class when type is file' , ( ) => {
118118 const wrapper = shallow ( < Input type = "file" /> ) ;
119119
120120 expect ( wrapper . hasClass ( 'form-control' ) ) . toBe ( false ) ;
121- expect ( wrapper . hasClass ( 'form-control-static ' ) ) . toBe ( false ) ;
121+ expect ( wrapper . hasClass ( 'form-control-plaintext ' ) ) . toBe ( false ) ;
122122 expect ( wrapper . hasClass ( 'form-check-input' ) ) . toBe ( false ) ;
123123 } ) ;
124124
125- it ( 'should not render with "form-control-file" nor "form-control" nor "form-check-input" class when static prop is truthy' , ( ) => {
125+ it ( 'should not render with "form-control-file" nor "form-control" nor "form-check-input" class when plaintext prop is truthy' , ( ) => {
126+ const wrapper = shallow ( < Input type = "file" plaintext /> ) ;
127+
128+ expect ( wrapper . hasClass ( 'form-control-file' ) ) . toBe ( false ) ;
129+ expect ( wrapper . hasClass ( 'form-control' ) ) . toBe ( false ) ;
130+ expect ( wrapper . hasClass ( 'form-check-input' ) ) . toBe ( false ) ;
131+ } ) ;
132+
133+ it ( 'should not render with "form-control-file" nor "form-control" nor "form-check-input" class when static prop is truthy [DEPRECATED]' , ( ) => {
126134 const wrapper = shallow ( < Input type = "file" static /> ) ;
127135
128136 expect ( wrapper . hasClass ( 'form-control-file' ) ) . toBe ( false ) ;
129137 expect ( wrapper . hasClass ( 'form-control' ) ) . toBe ( false ) ;
130138 expect ( wrapper . hasClass ( 'form-check-input' ) ) . toBe ( false ) ;
131139 } ) ;
132140
133- it ( 'should not render with "form-control-file" nor "form-control-static " nor "form-control" class when type is radio' , ( ) => {
141+ it ( 'should not render with "form-control-file" nor "form-control-plaintext " nor "form-control" class when type is radio' , ( ) => {
134142 const wrapper = shallow ( < Input type = "radio" /> ) ;
135143
136144 expect ( wrapper . hasClass ( 'form-control-file' ) ) . toBe ( false ) ;
137- expect ( wrapper . hasClass ( 'form-control-static ' ) ) . toBe ( false ) ;
145+ expect ( wrapper . hasClass ( 'form-control-plaintext ' ) ) . toBe ( false ) ;
138146 expect ( wrapper . hasClass ( 'form-control' ) ) . toBe ( false ) ;
139147 } ) ;
140148
141- it ( 'should not render with "form-control-file" nor "form-control-static " nor "form-control" class when type is checkbox' , ( ) => {
149+ it ( 'should not render with "form-control-file" nor "form-control-plaintext " nor "form-control" class when type is checkbox' , ( ) => {
142150 const wrapper = shallow ( < Input type = "checkbox" /> ) ;
143151
144152 expect ( wrapper . hasClass ( 'form-control-file' ) ) . toBe ( false ) ;
145- expect ( wrapper . hasClass ( 'form-control-static ' ) ) . toBe ( false ) ;
153+ expect ( wrapper . hasClass ( 'form-control-plaintext ' ) ) . toBe ( false ) ;
146154 expect ( wrapper . hasClass ( 'form-control' ) ) . toBe ( false ) ;
147155 } ) ;
148156
0 commit comments