enhance: Provide Twemoji SVGs from Misskey server (#2) (#7897)

* Selfhosting Twemoji

* ちっ

* うざっ

* あ

* add test

Co-authored-by: mei23 <m@m544.net>
This commit is contained in:
tamaina
2021-10-24 21:10:45 +09:00
committed by GitHub
parent 1143606bc8
commit 5cf07fc50f
5 changed files with 66 additions and 2 deletions

View File

@ -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', () => {