Skip to content

Commit 5db32f6

Browse files
committed
test: Customize image button's style
1 parent e4dcb2a commit 5db32f6

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/ImageGallery.test.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,18 @@ test("image gallery renders correctly with custom styles and fixed caption", ()
9595
position: "relative",
9696
};
9797

98+
const imageBtnStyle: React.CSSProperties = {
99+
border: "4px solid purple",
100+
};
101+
98102
render(
99103
<ImageGallery
100104
imagesInfoArray={imagesArray}
101105
columnCount={1}
102106
columnWidth={300}
103107
gapSize={2}
104108
fixedCaption={true}
105-
customStyles={{ imageContainerStyle }}
109+
customStyles={{ imageContainerStyle, imageBtnStyle }}
106110
/>
107111
);
108112
});

0 commit comments

Comments
 (0)