mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-02-10 05:34:50 +09:00
fix test
This commit is contained in:
parent
4654ce1a1a
commit
c0dc65261a
@ -44,7 +44,8 @@ describe('Webリソース', () => {
|
|||||||
const { path, accept, cookie, type } = param;
|
const { path, accept, cookie, type } = param;
|
||||||
const res = await simpleGet(path, accept, cookie);
|
const res = await simpleGet(path, accept, cookie);
|
||||||
assert.strictEqual(res.status, 200);
|
assert.strictEqual(res.status, 200);
|
||||||
assert.strictEqual(res.type?.toLowerCase(), type ?? HTML);
|
// Header values are case-insensitive
|
||||||
|
assert.strictEqual(res.type?.toLowerCase(), (type ?? HTML).toLowerCase());
|
||||||
return res;
|
return res;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -95,8 +96,7 @@ describe('Webリソース', () => {
|
|||||||
describe.each([
|
describe.each([
|
||||||
{ path: '/', type: HTML },
|
{ path: '/', type: HTML },
|
||||||
{ path: '/docs/ja-JP/about', type: HTML }, // "指定されたURLに該当するページはありませんでした。"
|
{ path: '/docs/ja-JP/about', type: HTML }, // "指定されたURLに該当するページはありませんでした。"
|
||||||
// fastify-static gives charset=UTF-8 instead of utf-8 and that's okay
|
{ path: '/api-doc', type: HTML },
|
||||||
{ path: '/api-doc', type: 'text/html; charset=UTF-8' },
|
|
||||||
{ path: '/api.json', type: JSON_UTF8 },
|
{ path: '/api.json', type: JSON_UTF8 },
|
||||||
{ path: '/api-console', type: HTML },
|
{ path: '/api-console', type: HTML },
|
||||||
{ path: '/_info_card_', type: HTML },
|
{ path: '/_info_card_', type: HTML },
|
||||||
|
Loading…
Reference in New Issue
Block a user