restore max height test

This commit is contained in:
Kagami Sascha Rosylight 2023-03-11 22:14:32 +01:00
parent e72b4191ea
commit f33b20ac8e
2 changed files with 12 additions and 0 deletions

View File

@ -278,6 +278,12 @@ describe("oEmbed", () => {
expect(summary.player.height).toBe(300);
});
test('max height', async () => {
await setUpFastify('oembed-too-tall.json');
const summary = await summaly(host);
expect(summary.player.height).toBe(1024);
});
test('children are ignored', async () => {
await setUpFastify('oembed-iframe-child.json');
const summary = await summaly(host);

View File

@ -0,0 +1,6 @@
{
"version": "1.0",
"type": "rich",
"html": "<iframe src='https://example.com/'></iframe>",
"height": 3000
}