From 5cf07fc50f311989e459c7151ca89e067619121f Mon Sep 17 00:00:00 2001 From: tamaina Date: Sun, 24 Oct 2021 21:10:45 +0900 Subject: enhance: Provide Twemoji SVGs from Misskey server (#2) (#7897) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Selfhosting Twemoji * ちっ * うざっ * あ * add test Co-authored-by: mei23 --- test/fetch-resource.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'test') diff --git a/test/fetch-resource.ts b/test/fetch-resource.ts index 6efe76d8b8..c403f4d395 100644 --- a/test/fetch-resource.ts +++ b/test/fetch-resource.ts @@ -91,6 +91,18 @@ describe('Fetch resource', () => { assert.strictEqual(res.status, 200); assert.strictEqual(res.type, 'image/png'); })); + + it('GET twemoji svg', async(async () => { + const res = await simpleGet('/twemoji/2764.svg'); + assert.strictEqual(res.status, 200); + assert.strictEqual(res.type, 'image/svg+xml'); + })); + + it('GET twemoji svg with hyphen', async(async () => { + const res = await simpleGet('/twemoji/2764-fe0f-200d-1f525.svg'); + assert.strictEqual(res.status, 200); + assert.strictEqual(res.type, 'image/svg+xml'); + })); }); describe('/@:username', () => { -- cgit v1.2.3-freya