File tree Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Expand file tree Collapse file tree 2 files changed +16
-3
lines changed Original file line number Diff line number Diff line change 5252 "webpack-cli" : " ^3.1.2"
5353 },
5454 "dependencies" : {
55- "cloudinary-core" : " ^2.7.4 " ,
55+ "cloudinary-core" : " ^2.8.2 " ,
5656 "prop-types" : " ^15.6.2"
5757 },
5858 "peerDependencies" : {
Original file line number Diff line number Diff line change @@ -137,8 +137,8 @@ describe('Image', () => {
137137 let tag = mount (
138138 < Image
139139 innerRef = { myRef }
140- cloudName = ' demo'
141- publicId = ' sample'
140+ cloudName = " demo"
141+ publicId = " sample"
142142 />
143143 ) ;
144144
@@ -147,4 +147,17 @@ describe('Image', () => {
147147 expect ( tag . find ( 'img' ) . prop ( 'src' ) ) . to . equal ( expected ) ;
148148 expect ( image . src ) . to . equal ( expected ) ;
149149 } ) ;
150+ it ( 'Should support signature param' , function ( ) {
151+ const expected = 'http://res.cloudinary.com/demo/image/upload/s--signature--/sample' ;
152+
153+ let tag = mount (
154+ < Image
155+ cloudName = "demo"
156+ publicId = "sample"
157+ signature = "signature"
158+ />
159+ ) ;
160+
161+ expect ( tag . find ( 'img' ) . prop ( 'src' ) ) . to . equal ( expected ) ;
162+ } ) ;
150163} ) ;
You can’t perform that action at this time.
0 commit comments