mirror of
https://github.com/misskey-dev/summaly.git
synced 2025-08-06 16:23:57 +09:00
nullable width
This commit is contained in:
@ -332,4 +332,11 @@ describe("oEmbed", () => {
|
||||
expect(summary.player.url).toBe('https://example.com/');
|
||||
expect(summary.player.allow).toStrictEqual([]);
|
||||
});
|
||||
|
||||
test('width: 100%', async () => {
|
||||
await setUpFastify('oembed-percentage-width.json');
|
||||
const summary = await summaly(host);
|
||||
expect(summary.player.width).toBe(null);
|
||||
expect(summary.player.height).toBe(300);
|
||||
});
|
||||
});
|
||||
|
@ -1,7 +0,0 @@
|
||||
{
|
||||
"version": "1.0",
|
||||
"type": "rich",
|
||||
"html": "<iframe src='https://example.com/'></iframe>",
|
||||
"width": "blobcat",
|
||||
"height": 300
|
||||
}
|
@ -2,5 +2,6 @@
|
||||
"version": "1.0",
|
||||
"type": "rich",
|
||||
"html": "<iframe src='https://example.com/'></iframe>",
|
||||
"width": "100%",
|
||||
"height": 300
|
||||
}
|
Reference in New Issue
Block a user