Skip to content

Commit

Permalink
add secure to resolve asset test
Browse files Browse the repository at this point in the history
  • Loading branch information
raae committed Nov 30, 2022
1 parent f8257f8 commit eb6bab9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugin/gatsby-plugin-image/resolve-asset.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ describe('generateCloudinaryAssetSource', () => {
const fit = undefined;
const options = {
chained: ['t_lwj'],
secure: true,
};
it('generated correct source data', () => {
const result = _generateCloudinaryAssetSource(
Expand All @@ -48,7 +49,7 @@ describe('generateCloudinaryAssetSource', () => {
);

expect(result.src).toBe(
'http://res.cloudinary.com/cloud-name/image/upload/f_jpg,h_500,w_300/t_lwj/public-id'
'https://res.cloudinary.com/cloud-name/image/upload/f_jpg,h_500,w_300/t_lwj/public-id'
);
expect(result.width).toBe(width);
expect(result.height).toBe(height);
Expand Down

0 comments on commit eb6bab9

Please sign in to comment.