@@ -41,7 +41,7 @@ describe('Notification.Hooks', () => {
4141 onClick = { ( ) => {
4242 api . open ( {
4343 duration : 0.1 ,
44- content : (
44+ description : (
4545 < Context . Consumer >
4646 { ( { name } ) => < div className = "context-content" > { name } </ div > }
4747 </ Context . Consumer >
@@ -78,14 +78,14 @@ describe('Notification.Hooks', () => {
7878 api . open ( {
7979 key : 'little' ,
8080 duration : 1000 ,
81- content : < div className = "context-content" > light</ div > ,
81+ description : < div className = "context-content" > light</ div > ,
8282 } ) ;
8383
8484 setTimeout ( ( ) => {
8585 api . open ( {
8686 key : 'little' ,
8787 duration : 1000 ,
88- content : < div className = "context-content" > bamboo</ div > ,
88+ description : < div className = "context-content" > bamboo</ div > ,
8989 } ) ;
9090 } , 500 ) ;
9191 } }
@@ -115,7 +115,7 @@ describe('Notification.Hooks', () => {
115115
116116 act ( ( ) => {
117117 instance . open ( {
118- content : < div className = "bamboo" /> ,
118+ description : < div className = "bamboo" /> ,
119119 } ) ;
120120 } ) ;
121121
@@ -129,7 +129,7 @@ describe('Notification.Hooks', () => {
129129 // Can be override
130130 act ( ( ) => {
131131 instance . open ( {
132- content : < div className = "little" /> ,
132+ description : < div className = "little" /> ,
133133 duration : 1 ,
134134 } ) ;
135135 } ) ;
@@ -142,7 +142,7 @@ describe('Notification.Hooks', () => {
142142 // Can be undefined
143143 act ( ( ) => {
144144 instance . open ( {
145- content : < div className = "light" /> ,
145+ description : < div className = "light" /> ,
146146 duration : undefined ,
147147 } ) ;
148148 } ) ;
@@ -171,7 +171,7 @@ describe('Notification.Hooks', () => {
171171
172172 act ( ( ) => {
173173 instance . open ( {
174- content : < div className = "bamboo" /> ,
174+ description : < div className = "bamboo" /> ,
175175 style : { color : 'red' } ,
176176 className : 'custom-notice' ,
177177 } ) ;
@@ -191,7 +191,7 @@ describe('Notification.Hooks', () => {
191191
192192 act ( ( ) => {
193193 instance . open ( {
194- content : < div className = "bamboo" /> ,
194+ description : < div className = "bamboo" /> ,
195195 duration : 0 ,
196196 closable : true ,
197197 classNames : {
@@ -212,7 +212,7 @@ describe('Notification.Hooks', () => {
212212
213213 act ( ( ) => {
214214 instance . open ( {
215- content : < div className = "bamboo" /> ,
215+ description : < div className = "bamboo" /> ,
216216 duration : 0 ,
217217 } ) ;
218218 } ) ;
0 commit comments