@@ -99,7 +99,7 @@ describe('linkClass', () => {
9999 expect ( subject . props . children [ 0 ] . props . className ) . to . equal ( 'foo-1' ) ;
100100 expect ( subject . props . children [ 1 ] . props . className ) . to . equal ( 'bar-1' ) ;
101101 } ) ;
102- it ( 'styleName is reset to null ' , ( ) => {
102+ it ( 'styleName is deleted from props ' , ( ) => {
103103 let subject ;
104104
105105 subject = < div >
@@ -112,8 +112,8 @@ describe('linkClass', () => {
112112 foo : 'foo-1'
113113 } ) ;
114114
115- expect ( subject . props . children [ 0 ] . props . styleName ) . to . equal ( null ) ;
116- expect ( subject . props . children [ 1 ] . props . styleName ) . to . equal ( null ) ;
115+ expect ( subject . props . children [ 0 ] . props ) . not . to . have . property ( 'styleName' ) ;
116+ expect ( subject . props . children [ 1 ] . props ) . not . to . have . property ( 'styleName' ) ;
117117 } ) ;
118118 } ) ;
119119 context ( 'when multiple descendants have styleName and are iterable' , ( ) => {
@@ -262,7 +262,7 @@ describe('linkClass', () => {
262262 } ) ;
263263 } ) ;
264264
265- it ( 'unsets styleName property of the target element' , ( ) => {
265+ it ( 'deletes styleName property from the target element' , ( ) => {
266266 let subject ;
267267
268268 subject = < div styleName = 'foo' > </ div > ;
@@ -272,10 +272,10 @@ describe('linkClass', () => {
272272 } ) ;
273273
274274 expect ( subject . props . className ) . to . deep . equal ( 'foo-1' ) ;
275- expect ( subject . props . styleName ) . to . deep . equal ( null ) ;
275+ expect ( subject . props ) . not . to . have . property ( 'styleName' ) ;
276276 } ) ;
277277
278- it ( 'unsets styleName property of the target element (deep)' , ( ) => {
278+ it ( 'deletes styleName property from the target element (deep)' , ( ) => {
279279 let subject ;
280280
281281 subject = < div styleName = 'foo' >
@@ -289,6 +289,6 @@ describe('linkClass', () => {
289289 } ) ;
290290
291291 expect ( subject . props . children [ 0 ] . props . className ) . to . deep . equal ( 'bar-1' ) ;
292- expect ( subject . props . children [ 0 ] . props . styleName ) . to . deep . equal ( null ) ;
292+ expect ( subject . props . children [ 0 ] . props ) . not . to . have . property ( 'styleName' ) ;
293293 } ) ;
294294} ) ;
0 commit comments