Skip to content
This repository was archived by the owner on Apr 15, 2025. It is now read-only.

Commit da9ffca

Browse files
committed
Patched default placeholder test.
1 parent 06fca52 commit da9ffca

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

tests/__snapshots__/imageCacheHoc.test.js.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ exports[`CacheableImage renders correctly with placeholder option set 1`] = `
6262
<Image
6363
style={
6464
Object {
65+
"backgroundColor": "#dc143c",
6566
"height": 204,
6667
"width": 150,
6768
}

tests/imageCacheHoc.test.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,9 @@ describe('CacheableImage', function() {
184184
}
185185
};
186186

187-
const CacheableImage = imageCacheHoc(Image, optionPlaceholder);
187+
const CacheableImage = imageCacheHoc(Image, {
188+
defaultPlaceholder: optionPlaceholder
189+
});
188190

189191
const tree = renderer.create(
190192
<View style={styles.container}>

0 commit comments

Comments
 (0)