@@ -59,7 +59,7 @@ descriptor('PureComponent extension', () => {
59
59
} ) ;
60
60
61
61
it ( 'runs on mount with "this" context of component' , ( ) => {
62
- expect ( callbackWill . firstCall ) . to . have . been . calledOn ( component . getNode ( ) ) ;
62
+ expect ( callbackWill . firstCall ) . to . have . been . calledOn ( component . instance ( ) ) ;
63
63
} ) ;
64
64
65
65
it ( 'runs on mount before render()' , ( ) => {
@@ -83,7 +83,7 @@ descriptor('PureComponent extension', () => {
83
83
84
84
it ( 'runs on props update with "this" context of component' , ( ) => {
85
85
component . setProps ( getUniqueProps ( ) ) ;
86
- expect ( callbackWill . secondCall ) . to . have . been . calledOn ( component . getNode ( ) ) ;
86
+ expect ( callbackWill . secondCall ) . to . have . been . calledOn ( component . instance ( ) ) ;
87
87
} ) ;
88
88
89
89
it ( 'runs on props update before render()' , ( ) => {
@@ -111,7 +111,7 @@ descriptor('PureComponent extension', () => {
111
111
} ) ;
112
112
113
113
it ( 'runs on mount with "this" context of component' , ( ) => {
114
- expect ( callbackDid . firstCall ) . to . have . been . calledOn ( component . getNode ( ) ) ;
114
+ expect ( callbackDid . firstCall ) . to . have . been . calledOn ( component . instance ( ) ) ;
115
115
} ) ;
116
116
117
117
it ( 'runs after render()' , ( ) => {
@@ -137,7 +137,7 @@ descriptor('PureComponent extension', () => {
137
137
138
138
it ( 'runs on props update with "this" context of component' , ( ) => {
139
139
component . setProps ( getUniqueProps ( ) ) ;
140
- expect ( callbackDid . secondCall ) . to . have . been . calledOn ( component . getNode ( ) ) ;
140
+ expect ( callbackDid . secondCall ) . to . have . been . calledOn ( component . instance ( ) ) ;
141
141
} ) ;
142
142
143
143
it ( 'runs on state update' , ( ) => {
@@ -159,7 +159,7 @@ descriptor('PureComponent extension', () => {
159
159
160
160
it ( 'runs on state update with "this" context of component' , ( ) => {
161
161
component . setState ( getUniqueState ( ) ) ;
162
- expect ( callbackDid . secondCall ) . to . have . been . calledOn ( component . getNode ( ) ) ;
162
+ expect ( callbackDid . secondCall ) . to . have . been . calledOn ( component . instance ( ) ) ;
163
163
} ) ;
164
164
165
165
it ( 'runs on props update before render()' , ( ) => {
0 commit comments