File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/react-native-web/src/exports/Image/__tests__ Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -173,7 +173,7 @@ describe('components/Image', () => {
173
173
expect ( onLoadEndStub . mock . calls . length ) . toBe ( 2 ) ;
174
174
} ) ;
175
175
176
- test ( 'is called on update if "headers" are different ' , ( ) => {
176
+ test ( 'is called on update if "headers" are modified ' , ( ) => {
177
177
const onLoadStartStub = jest . fn ( ) ;
178
178
const onLoadStub = jest . fn ( ) ;
179
179
const onLoadEndStub = jest . fn ( ) ;
@@ -257,7 +257,9 @@ describe('components/Image', () => {
257
257
expect ( onLoadEndStub . mock . calls . length ) . toBe ( 1 ) ;
258
258
} ) ;
259
259
260
- test ( 'is not called on update if "headers" and "uri" the same' , ( ) => {
260
+ // This test verifies that wen source is declared in-line and the parent component
261
+ // re-renders we aren't restarting the load process because the source is structurally equal
262
+ test ( 'is not called on update when "headers" and "uri" are not modified' , ( ) => {
261
263
const onLoadStartStub = jest . fn ( ) ;
262
264
const onLoadStub = jest . fn ( ) ;
263
265
const onLoadEndStub = jest . fn ( ) ;
You can’t perform that action at this time.
0 commit comments