mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 15:33:08 +02:00
Add test
This commit is contained in:
parent
64cf49c378
commit
b729000687
1 changed files with 3 additions and 0 deletions
|
@ -25,6 +25,9 @@ describe('API', () => {
|
||||||
|
|
||||||
const res3 = await cli.request('meta', { });
|
const res3 = await cli.request('meta', { });
|
||||||
expectType<Misskey.entities.LiteInstanceMetadata>(res3);
|
expectType<Misskey.entities.LiteInstanceMetadata>(res3);
|
||||||
|
|
||||||
|
const res4 = await cli.request('meta', { detail: true as boolean });
|
||||||
|
expectType<Misskey.entities.LiteInstanceMetadata | Misskey.entities.DetailedInstanceMetadata>(res4);
|
||||||
});
|
});
|
||||||
|
|
||||||
test('conditional respose type (users/show)', async () => {
|
test('conditional respose type (users/show)', async () => {
|
||||||
|
|
Loading…
Reference in a new issue