@@ -98,7 +98,7 @@ describe('linkClass', () => {
9898 expect ( subject . props . children [ 0 ] . props . className ) . to . equal ( 'foo-1' ) ;
9999 expect ( subject . props . children [ 1 ] . props . className ) . to . equal ( 'bar-1' ) ;
100100 } ) ;
101- it ( 'styleName is reset to null ' , ( ) => {
101+ it ( 'styleName is deleted from props ' , ( ) => {
102102 let subject ;
103103
104104 subject = < div >
@@ -111,8 +111,8 @@ describe('linkClass', () => {
111111 foo : 'foo-1'
112112 } ) ;
113113
114- expect ( subject . props . children [ 0 ] . props . styleName ) . to . equal ( null ) ;
115- expect ( subject . props . children [ 1 ] . props . styleName ) . to . equal ( null ) ;
114+ expect ( subject . props . children [ 0 ] . props ) . not . to . have . property ( 'styleName' ) ;
115+ expect ( subject . props . children [ 1 ] . props ) . not . to . have . property ( 'styleName' ) ;
116116 } ) ;
117117 } ) ;
118118 context ( 'when multiple descendants have styleName and are iterable' , ( ) => {
@@ -261,7 +261,7 @@ describe('linkClass', () => {
261261 } ) ;
262262 } ) ;
263263
264- it ( 'unsets styleName property of the target element' , ( ) => {
264+ it ( 'deletes styleName property from the target element' , ( ) => {
265265 let subject ;
266266
267267 subject = < div styleName = 'foo' > </ div > ;
@@ -271,10 +271,10 @@ describe('linkClass', () => {
271271 } ) ;
272272
273273 expect ( subject . props . className ) . to . deep . equal ( 'foo-1' ) ;
274- expect ( subject . props . styleName ) . to . deep . equal ( null ) ;
274+ expect ( subject . props ) . not . to . have . property ( 'styleName' ) ;
275275 } ) ;
276276
277- it ( 'unsets styleName property of the target element (deep)' , ( ) => {
277+ it ( 'deletes styleName property from the target element (deep)' , ( ) => {
278278 let subject ;
279279
280280 subject = < div styleName = 'foo' >
@@ -288,6 +288,6 @@ describe('linkClass', () => {
288288 } ) ;
289289
290290 expect ( subject . props . children [ 0 ] . props . className ) . to . deep . equal ( 'bar-1' ) ;
291- expect ( subject . props . children [ 0 ] . props . styleName ) . to . deep . equal ( null ) ;
291+ expect ( subject . props . children [ 0 ] . props ) . not . to . have . property ( 'styleName' ) ;
292292 } ) ;
293293} ) ;
0 commit comments