mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-10 22:03:08 +02:00
15 lines
406 B
TypeScript
15 lines
406 B
TypeScript
|
/**
|
||
|
* Unit testing TypeScript types.
|
||
|
* with https://github.com/SamVerschueren/tsd
|
||
|
*/
|
||
|
|
||
|
import { expectType } from 'tsd';
|
||
|
import * as Misskey from '../src';
|
||
|
|
||
|
describe('API', () => {
|
||
|
test('returns node that has sprcified type', async () => {
|
||
|
const res = await Misskey.api.request('https://misskey.test', 'meta', { detail: true }, 'TOKEN');
|
||
|
expectType<Misskey.entities.InstanceMetadata>(res);
|
||
|
});
|
||
|
});
|