@@ -99,7 +99,7 @@ describe('linkClass', () => {
99
99
expect ( subject . props . children [ 0 ] . props . className ) . to . equal ( 'foo-1' ) ;
100
100
expect ( subject . props . children [ 1 ] . props . className ) . to . equal ( 'bar-1' ) ;
101
101
} ) ;
102
- it ( 'styleName is reset to null ' , ( ) => {
102
+ it ( 'styleName is unset ' , ( ) => {
103
103
let subject ;
104
104
105
105
subject = < div >
@@ -112,8 +112,8 @@ describe('linkClass', () => {
112
112
foo : 'foo-1'
113
113
} ) ;
114
114
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 . styleName ) . to . be . an ( 'undefined' ) ;
116
+ expect ( subject . props . children [ 1 ] . props . styleName ) . to . be . an ( 'undefined' ) ;
117
117
} ) ;
118
118
} ) ;
119
119
context ( 'when multiple descendants have styleName and are iterable' , ( ) => {
@@ -272,7 +272,7 @@ describe('linkClass', () => {
272
272
} ) ;
273
273
274
274
expect ( subject . props . className ) . to . deep . equal ( 'foo-1' ) ;
275
- expect ( subject . props . styleName ) . to . deep . equal ( null ) ;
275
+ expect ( subject . props . styleName ) . to . be . an ( 'undefined' ) ;
276
276
} ) ;
277
277
278
278
it ( 'unsets styleName property of the target element (deep)' , ( ) => {
@@ -289,6 +289,6 @@ describe('linkClass', () => {
289
289
} ) ;
290
290
291
291
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 . styleName ) . to . be . an ( 'undefined' ) ;
293
293
} ) ;
294
294
} ) ;
0 commit comments