Skip to content

Commit 709ed7f

Browse files
nirmaozNir Maoz
authored andcommitted
Add support for "signature" param
1 parent 8d1bbb4 commit 709ed7f

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
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": {

test/ImageTest.js

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)