diff options
| author | tamaina <tamaina@hotmail.co.jp> | 2021-10-24 21:10:45 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-24 21:10:45 +0900 |
| commit | 5cf07fc50f311989e459c7151ca89e067619121f (patch) | |
| tree | 9cc19604a0fb88d1fb487a2c02b60d45bff44795 /test | |
| parent | Update CHANGELOG.md (diff) | |
| download | sharkey-5cf07fc50f311989e459c7151ca89e067619121f.tar.gz sharkey-5cf07fc50f311989e459c7151ca89e067619121f.tar.bz2 sharkey-5cf07fc50f311989e459c7151ca89e067619121f.zip | |
enhance: Provide Twemoji SVGs from Misskey server (#2) (#7897)
* Selfhosting Twemoji
* ちっ
* うざっ
* あ
* add test
Co-authored-by: mei23 <m@m544.net>
Diffstat (limited to 'test')
| -rw-r--r-- | test/fetch-resource.ts | 12 |
1 files changed, 12 insertions, 0 deletions
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', () => { |