Improve blurhash decode warning, use valid hashes in tests

This commit is contained in:
2026-04-22 09:19:31 +04:00
parent 8ca7481a79
commit 0f8d7046ac
2 changed files with 5 additions and 5 deletions

View File

@@ -23,7 +23,7 @@ export default class Blurhash extends Component {
imageData.data.set(pixels);
ctx.putImageData(imageData, 0, 0);
} catch (e) {
console.warn('Failed to decode blurhash:', e);
console.warn('Failed to decode blurhash:', e.message || e);
}
});

View File

@@ -23,7 +23,7 @@ module('Integration | Component | place-photos-carousel', function (hooks) {
{
url: 'photo1.jpg',
thumbUrl: 'thumb1.jpg',
blurhash: 'L0000',
blurhash: 'LKO2?U%2Tw=w]~RBVZRi};RPxuwH',
ratio: 1.5,
isLandscape: true,
},
@@ -56,21 +56,21 @@ module('Integration | Component | place-photos-carousel', function (hooks) {
{
url: 'photo1.jpg',
thumbUrl: 'thumb1.jpg',
blurhash: 'L0000',
blurhash: 'LKO2?U%2Tw=w]~RBVZRi};RPxuwH',
ratio: 1.5,
isLandscape: true,
},
{
url: 'photo2.jpg',
thumbUrl: 'thumb2.jpg',
blurhash: 'L1111',
blurhash: 'LKO2?U%2Tw=w]~RBVZRi};RPxuwH',
ratio: 1.0,
isLandscape: false,
},
{
url: 'photo3.jpg',
thumbUrl: 'thumb3.jpg',
blurhash: 'L2222',
blurhash: 'LKO2?U%2Tw=w]~RBVZRi};RPxuwH',
ratio: 0.8,
isLandscape: false,
},