mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-06-04 04:17:24 +09:00
restore max height test
This commit is contained in:
parent
e72b4191ea
commit
f33b20ac8e
@ -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);
|
||||
|
6
test/oembed/oembed-too-tall.json
Normal file
6
test/oembed/oembed-too-tall.json
Normal file
@ -0,0 +1,6 @@
|
||||
{
|
||||
"version": "1.0",
|
||||
"type": "rich",
|
||||
"html": "<iframe src='https://example.com/'></iframe>",
|
||||
"height": 3000
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user