Tests: ensure SVG is well-formed, detect lack of pango

This commit is contained in:
Lovell Fuller
2023-10-19 16:08:34 +01:00
parent 0107a4de81
commit 65e61ad001
3 changed files with 24 additions and 6 deletions

View File

@@ -246,7 +246,7 @@ describe('composite', () => {
sharp(fixtures.inputJpg)
.resize(300, 300)
.composite([{
input: Buffer.from('<svg width="200" height="200"><rect x="0" y="0" width="200" height="200" rx="50" ry="50"/></svg>'),
input: Buffer.from('<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200"><rect x="0" y="0" width="200" height="200" rx="50" ry="50"/></svg>'),
density: 96,
blend: 'dest-in',
cutout: true